From: Elvis Angelaccio Date: Thu, 28 May 2020 20:02:03 +0000 (+0200) Subject: Fix clazy-range-loop warning X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/c886d3736d354837ec464f5906e64f1a94558924 Fix clazy-range-loop warning --- diff --git a/src/global.cpp b/src/global.cpp index 32a2d4ebb..6a702cf43 100644 --- a/src/global.cpp +++ b/src/global.cpp @@ -104,7 +104,7 @@ bool Dolphin::attachToExistingInstance(const QList& inputUrls, bool openFi } dolphinInterfaces.front().second << newUrls; - for (const auto& interface: dolphinInterfaces) { + for (const auto& interface: qAsConst(dolphinInterfaces)) { if (!interface.second.isEmpty()) { auto reply = openFiles ? interface.first->openFiles(interface.second, splitView) : interface.first->openDirectories(interface.second, splitView); reply.waitForFinished();