diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-12 08:23:22 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-12 08:33:57 +0200 |
commit | 497b88f48e634a00ae952afc1776e317c9da460a (patch) | |
tree | 779bbb96ead58905b090eacebd0b12bba5b14c49 | |
parent | 35815a20a78fc440bdf79c64ee86cfcd62a23557 (diff) | |
download | sink-497b88f48e634a00ae952afc1776e317c9da460a.tar.gz sink-497b88f48e634a00ae952afc1776e317c9da460a.zip |
Avoid copying
-rw-r--r-- | common/storage/entitystore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index 44fd54d..d2161a6 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp | |||
@@ -407,7 +407,7 @@ void EntityStore::cleanupEntityRevisionsUntil(qint64 revision) | |||
407 | if (isRemoval) { | 407 | if (isRemoval) { |
408 | QDir dir{d->entityBlobStorageDir()}; | 408 | QDir dir{d->entityBlobStorageDir()}; |
409 | const auto infoList = dir.entryInfoList(QStringList{} << QString{uid + "*"}); | 409 | const auto infoList = dir.entryInfoList(QStringList{} << QString{uid + "*"}); |
410 | for (const auto fileInfo : infoList) { | 410 | for (const auto &fileInfo : infoList) { |
411 | QFile::remove(fileInfo.filePath()); | 411 | QFile::remove(fileInfo.filePath()); |
412 | } | 412 | } |
413 | } | 413 | } |