From f716aac52a0109f2b8db31af19dd955695b9b3b9 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Fri, 17 Feb 2017 16:45:11 +0100 Subject: [PATCH] qmake: sprinkle some const Change-Id: I7f4ecc97650d8ed9c9720f3ff3af1b7eaa89c623 Reviewed-by: hjk --- src/plugins/qmakeprojectmanager/qmakeparsernodes.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/qmakeprojectmanager/qmakeparsernodes.cpp b/src/plugins/qmakeprojectmanager/qmakeparsernodes.cpp index d1589c31242..1761ec7887e 100644 --- a/src/plugins/qmakeprojectmanager/qmakeparsernodes.cpp +++ b/src/plugins/qmakeprojectmanager/qmakeparsernodes.cpp @@ -1378,25 +1378,25 @@ QmakeEvalResult *QmakeProFile::evaluate(const QmakeEvalInput &input) QHash> exactSourceFiles; QHash> cumulativeSourceFiles; - QStringList baseVPathsExact + const QStringList baseVPathsExact = baseVPaths(exactReader, input.projectDir, input.buildDirectory.toString()); - QStringList baseVPathsCumulative + const QStringList baseVPathsCumulative = baseVPaths(cumulativeReader, input.projectDir, input.buildDirectory.toString()); for (int i = 0; i < static_cast(FileType::FileTypeSize); ++i) { - FileType type = static_cast(i); - QStringList qmakeVariables = varNames(type, exactReader); + const FileType type = static_cast(i); + const QStringList qmakeVariables = varNames(type, exactReader); foreach (const QString &qmakeVariable, qmakeVariables) { QHash handled; if (result->state == QmakeEvalResult::EvalOk) { - QStringList vPathsExact = fullVPaths( + const QStringList vPathsExact = fullVPaths( baseVPathsExact, exactReader, qmakeVariable, input.projectDir); auto sourceFiles = exactReader->absoluteFileValues( qmakeVariable, input.projectDir, vPathsExact, &handled); exactSourceFiles[qmakeVariable] = sourceFiles; extractSources(proToResult, &result->includedFiles.result, sourceFiles, type); } - QStringList vPathsCumulative = fullVPaths( + const QStringList vPathsCumulative = fullVPaths( baseVPathsCumulative, cumulativeReader, qmakeVariable, input.projectDir); auto sourceFiles = cumulativeReader->absoluteFileValues( qmakeVariable, input.projectDir, vPathsCumulative, &handled);