]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/global.cpp
Fix clazy-range-loop warning
[dolphin.git] / src / global.cpp
index 32a2d4ebb04bf6a57a7059e0c41e4af89824bcf7..6a702cf43bacf08cd981b1f90f0012a19f1d3400 100644 (file)
@@ -104,7 +104,7 @@ bool Dolphin::attachToExistingInstance(const QList<QUrl>& inputUrls, bool openFi
     }
     dolphinInterfaces.front().second << newUrls;
 
     }
     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();
         if (!interface.second.isEmpty()) {
             auto reply = openFiles ? interface.first->openFiles(interface.second, splitView) : interface.first->openDirectories(interface.second, splitView);
             reply.waitForFinished();