Fixed Cppcheck warning
This commit is contained in:
parent
137f262300
commit
9f76fcf5f1
|
@ -215,15 +215,23 @@ int CppCheckExecutor::check(int argc, const char* const argv[])
|
||||||
mSettings = &settings;
|
mSettings = &settings;
|
||||||
|
|
||||||
if (!parseFromArgs(&cppCheck, argc, argv)) {
|
if (!parseFromArgs(&cppCheck, argc, argv)) {
|
||||||
|
mSettings = nullptr;
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
if (Settings::terminated()) {
|
if (Settings::terminated()) {
|
||||||
|
mSettings = nullptr;
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
if (cppCheck.settings().exceptionHandling) {
|
|
||||||
return check_wrapper(cppCheck, argc, argv);
|
int ret;
|
||||||
}
|
|
||||||
return check_internal(cppCheck, argc, argv);
|
if (cppCheck.settings().exceptionHandling)
|
||||||
|
ret = check_wrapper(cppCheck, argc, argv);
|
||||||
|
else
|
||||||
|
ret = check_internal(cppCheck, argc, argv);
|
||||||
|
|
||||||
|
mSettings = nullptr;
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CppCheckExecutor::setSettings(const Settings &settings)
|
void CppCheckExecutor::setSettings(const Settings &settings)
|
||||||
|
|
Loading…
Reference in New Issue