From a24327cd50ef17b953ecb908d260b73460158107 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Fri, 23 Oct 2020 19:48:22 +0200 Subject: Compile without foreach --- src/global.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/global.cpp') diff --git a/src/global.cpp b/src/global.cpp index 3d91fbab9..1018c7d4c 100644 --- a/src/global.cpp +++ b/src/global.cpp @@ -22,7 +22,7 @@ QList Dolphin::validateUris(const QStringList& uriList) { const QString currentDir = QDir::currentPath(); QList urls; - foreach (const QString& str, uriList) { + for (const QString& str : uriList) { const QUrl url = QUrl::fromUserInput(str, currentDir, QUrl::AssumeLocalFile); if (url.isValid()) { urls.append(url); -- cgit v1.3