lib: Fix clang -Wrange-loop-construct warning (#3347)
This commit is contained in:
parent
a65fa9b682
commit
48031ffb3b
|
@ -1371,7 +1371,7 @@ void CppCheck::executeAddonsWholeProgram(const std::map<std::string, std::size_t
|
||||||
return;
|
return;
|
||||||
|
|
||||||
std::vector<std::string> ctuInfoFiles;
|
std::vector<std::string> ctuInfoFiles;
|
||||||
for (const auto f: files) {
|
for (const auto &f: files) {
|
||||||
const std::string &dumpFileName = getDumpFileName(mSettings, f.first);
|
const std::string &dumpFileName = getDumpFileName(mSettings, f.first);
|
||||||
ctuInfoFiles.push_back(getCtuInfoFileName(dumpFileName));
|
ctuInfoFiles.push_back(getCtuInfoFileName(dumpFileName));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue