lib: Fix clang -Wrange-loop-construct warning (#3347)

This commit is contained in:
Georgiy Komarov 2021-07-22 19:53:44 +03:00 committed by GitHub
parent a65fa9b682
commit 48031ffb3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1371,7 +1371,7 @@ void CppCheck::executeAddonsWholeProgram(const std::map<std::string, std::size_t
return;
std::vector<std::string> ctuInfoFiles;
for (const auto f: files) {
for (const auto &f: files) {
const std::string &dumpFileName = getDumpFileName(mSettings, f.first);
ctuInfoFiles.push_back(getCtuInfoFileName(dumpFileName));
}