Adapt to cases when conversion is a no-op
This commit is contained in:
parent
4734301bef
commit
6f0d5aaee3
|
@ -975,9 +975,8 @@ void CppCheckExecutor::reportErr(const std::string &errmsg)
|
||||||
_errorList.insert(errmsg);
|
_errorList.insert(errmsg);
|
||||||
if (errorOutput)
|
if (errorOutput)
|
||||||
*errorOutput << errmsg << std::endl;
|
*errorOutput << errmsg << std::endl;
|
||||||
else {
|
else {
|
||||||
const bool doConvert = (_settings == nullptr) ? true : !_settings->xml;
|
std::cerr << ansiToOEM(errmsg, (_settings == nullptr) ? true : !_settings->xml) << std::endl;
|
||||||
std::cerr << ansiToOEM(errmsg, doConvert) << std::endl;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue