From 45e5edce16d1953fc6c1600c145011bad8cbff24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 28 Apr 2019 12:04:44 +0200 Subject: [PATCH] Fixed Cppcheck shadowVariable warning --- lib/cppcheck.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 7249c04ed..a1468a3bf 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -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);