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! # temporary suppressions - fix the warnings!
missingOverride missingOverride
shadowVar
shiftTooManyBitsSigned shiftTooManyBitsSigned
uninitStructMember uninitStructMember
unsignedLessThanZero unsignedLessThanZero

View File

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