summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-29 06:01:38 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-29 06:01:38 +0100
commit19dc6cadea0168f72daff7c0ed679ccdac71a7d5 (patch)
treeb10a86fcd0ab0f12f5e242996b307bb2cac97940 /src/Cache.cpp
parentReduce allocations required for the palette (diff)
downloadnheko-19dc6cadea0168f72daff7c0ed679ccdac71a7d5.tar.xz
Reserve size of some containers we are filling
Diffstat (limited to '')
-rw-r--r--src/Cache.cpp12
1 files changed, 6 insertions, 6 deletions
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_);