Skip to content

Commit

Permalink
fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zedxxx committed Feb 7, 2022
1 parent 9635e31 commit ddc7082
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reverse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down Expand Up @@ -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");

Expand All @@ -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() != ":/") {
Expand Down

0 comments on commit ddc7082

Please sign in to comment.