diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 3eef69468..c5acc46ca 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -1371,7 +1371,7 @@ void CppCheck::executeAddonsWholeProgram(const std::map ctuInfoFiles; - for (const auto f: files) { + for (const auto &f: files) { const std::string &dumpFileName = getDumpFileName(mSettings, f.first); ctuInfoFiles.push_back(getCtuInfoFileName(dumpFileName)); }