Ref T171, interpolator / interpolation logger formatting

This commit is contained in:
Klaus Basan
2017-10-14 00:55:10 +02:00
parent cbe2cfaded
commit c3f3f266d0
6 changed files with 31 additions and 36 deletions

View File

@@ -110,14 +110,9 @@ namespace BlackMisc
CStatusMessage CInterpolationLogger::logStatusFileWriting(bool success, const QString &fileName)
{
if (success)
{
return CStatusMessage(static_cast<CInterpolationLogger *>(nullptr)).info("Written log file '%1'") << fileName;
}
else
{
return CStatusMessage(static_cast<CInterpolationLogger *>(nullptr)).error("Failed to write log file '%1'") << fileName;
}
return success ?
CStatusMessage(static_cast<CInterpolationLogger *>(nullptr)).info("Written log file '%1'") << fileName :
CStatusMessage(static_cast<CInterpolationLogger *>(nullptr)).error("Failed to write log file '%1'") << fileName;
}
void CInterpolationLogger::logInterpolation(const CInterpolationLogger::SituationLog &log)