fix regressions in SplashObserver::SendLog and ReportOutput::SendLog

This commit is contained in:
wmayer
2019-10-20 13:41:10 +02:00
parent c71c893a50
commit c642768756
2 changed files with 14 additions and 8 deletions

View File

@@ -112,12 +112,13 @@ public:
}
void SendLog(const std::string& msg, Base::LogStyle level) override
{
(void) level; // to eliminate unused parameter warning
#ifdef FC_DEBUG
Log(msg.c_str());
Q_UNUSED(level)
#else
Q_UNUSED(msg.c_str());
if (level == Base::LogStyle::Log) {
Log(msg.c_str());
}
#endif
}
void Log (const char * s)