From 19dc6cadea0168f72daff7c0ed679ccdac71a7d5 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 29 Dec 2021 06:01:38 +0100 Subject: Reserve size of some containers we are filling --- src/Cache.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Cache.cpp') diff --git a/src/Cache.cpp b/src/Cache.cpp index 3a21f83e..b197353e 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -224,13 +224,13 @@ Cache::setup() // Previous location of the cache directory auto oldCache = QStringLiteral("%1/%2%3").arg(QStandardPaths::writableLocation(QStandardPaths::CacheLocation), - QString::fromUtf8(localUserId_.toUtf8().toHex()), - QString::fromUtf8(settings->profile().toUtf8().toHex())); + QString::fromUtf8(localUserId_.toUtf8().toHex()), + QString::fromUtf8(settings->profile().toUtf8().toHex())); - cacheDirectory_ = - QStringLiteral("%1/%2%3").arg(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation), - QString::fromUtf8(localUserId_.toUtf8().toHex()), - QString::fromUtf8(settings->profile().toUtf8().toHex())); + cacheDirectory_ = QStringLiteral("%1/%2%3").arg( + QStandardPaths::writableLocation(QStandardPaths::AppDataLocation), + QString::fromUtf8(localUserId_.toUtf8().toHex()), + QString::fromUtf8(settings->profile().toUtf8().toHex())); bool isInitial = !QFile::exists(cacheDirectory_); -- cgit 1.5.1