Skip to content

Commit f214849

Browse files
committed
fix(performance): fix a small performance issue
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
1 parent 09a0bf0 commit f214849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsync/syncengine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ void SyncEngine::setLocalDiscoveryOptions(LocalDiscoveryStyle style, std::set<QS
12611261
// only execute if logging is enabled
12621262
auto debug = qDebug(lcEngine);
12631263
debug << "paths to discover locally";
1264-
for (auto path : _localDiscoveryPaths) {
1264+
for (const auto &path : _localDiscoveryPaths) {
12651265
debug << path;
12661266
}
12671267
}

0 commit comments

Comments
 (0)