From ddc7082f887c286c120c6fa1aa25752cc3e3cdab Mon Sep 17 00:00:00 2001 From: zed Date: Mon, 7 Feb 2022 23:08:54 +0300 Subject: [PATCH] fix compiler warnings --- src/reverse.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/reverse.cpp b/src/reverse.cpp index ccd846e..b7ea450 100644 --- a/src/reverse.cpp +++ b/src/reverse.cpp @@ -27,7 +27,7 @@ void RCCReverseLib::rccReverse(const QDir& dir) QStringList listFiles = dir.entryList(m_mask.split(QLatin1String(" ")), QDir::Files); - for (const QString rccFile : listFiles) + for (const QString& rccFile : listFiles) { toLog("Found file: " + rccFile + "\n"); @@ -80,7 +80,7 @@ void RCCReverseLib::recurRccReverse(const QDir& dir, const QString path) QStringList listFiles = dir.entryList(QDir::Files); - for (const QString resFile : listFiles) + for (const QString& resFile : listFiles) { toLog("Found resource file: " + dir.absoluteFilePath(resFile) + "\n"); @@ -99,7 +99,7 @@ void RCCReverseLib::recurRccReverse(const QDir& dir, const QString path) QStringList listDirs = dir.entryList(QDir::Dirs|QDir::NoDotAndDotDot); - for (const QString resDir : listDirs) + for (const QString& resDir : listDirs) { toLog("Found resource folder: " + resDir + "\n"); if (dir.path() != ":/") {