Refactoring; Use const reference instead of const

This commit is contained in:
Daniel Marjamäki 2019-04-29 08:53:36 +02:00
parent 45e5edce16
commit 2e694f38c8
1 changed files with 1 additions and 1 deletions

View File

@ -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;