Fixed Cppcheck shadowVar warning
This commit is contained in:
parent
c7d7f8738c
commit
d69f002757
|
@ -7,7 +7,6 @@ shadowFunction
|
||||||
|
|
||||||
# temporary suppressions - fix the warnings!
|
# temporary suppressions - fix the warnings!
|
||||||
missingOverride
|
missingOverride
|
||||||
shadowVar
|
|
||||||
shiftTooManyBitsSigned
|
shiftTooManyBitsSigned
|
||||||
uninitStructMember
|
uninitStructMember
|
||||||
unsignedLessThanZero
|
unsignedLessThanZero
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue