Fixed Cppcheck shadowVar warning

This commit is contained in:
Daniel Marjamäki 2019-04-30 20:19:21 +02:00
parent c7d7f8738c
commit d69f002757
2 changed files with 2 additions and 3 deletions

View File

@ -7,7 +7,6 @@ shadowFunction
# temporary suppressions - fix the warnings!
missingOverride
shadowVar
shiftTooManyBitsSigned
uninitStructMember
unsignedLessThanZero

View File

@ -1077,8 +1077,8 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti
settings->userDefines = temp.userDefines;
settings->userUndefs = temp.userUndefs;
settings->addons = temp.addons;
for (const std::string &path : paths)
guiProject.pathNames.push_back(path);
for (const std::string &p : paths)
guiProject.pathNames.push_back(p);
for (const std::string &supp : suppressions)
settings->nomsg.addSuppressionLine(supp);
settings->checkHeaders = temp.checkHeaders;