Refactoring; Use const reference instead of const
This commit is contained in:
parent
45e5edce16
commit
2e694f38c8
|
@ -575,7 +575,7 @@ unsigned int CppCheck::checkFile(const std::string& filename, const std::string
|
|||
|
||||
for (const std::string &addon : mSettings.addons) {
|
||||
struct AddonInfo addonInfo;
|
||||
const std::string failedToGetAddonInfo = addonInfo.getAddonInfo(addon, mSettings.exename);
|
||||
const std::string &failedToGetAddonInfo = addonInfo.getAddonInfo(addon, mSettings.exename);
|
||||
if (!failedToGetAddonInfo.empty()) {
|
||||
reportOut(failedToGetAddonInfo);
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue