Fixed Cppcheck shadowVariable warning

This commit is contained in:
Daniel Marjamäki 2019-04-28 12:04:44 +02:00
parent 74fad6ce05
commit 45e5edce16
1 changed files with 3 additions and 3 deletions

View File

@ -575,9 +575,9 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string
for (const std::string &addon : mSettings.addons) {
struct AddonInfo addonInfo;
const std::string errmsg = addonInfo.getAddonInfo(addon, mSettings.exename);
if (!errmsg.empty()) {
reportOut(errmsg);
const std::string failedToGetAddonInfo = addonInfo.getAddonInfo(addon, mSettings.exename);
if (!failedToGetAddonInfo.empty()) {
reportOut(failedToGetAddonInfo);
continue;
}
const std::string &results = executeAddon(addonInfo, dumpFile);