diff --git a/src/Gui/Splashscreen.cpp b/src/Gui/Splashscreen.cpp index 5dd46e448e..8cc9ad04e2 100644 --- a/src/Gui/Splashscreen.cpp +++ b/src/Gui/Splashscreen.cpp @@ -184,17 +184,17 @@ public: Q_UNUSED(content) #ifdef FC_DEBUG - Log(msg.c_str()); Q_UNUSED(level) + Log(msg); #else if (level == Base::LogStyle::Log) { - Log(msg.c_str()); + Log(msg); } #endif } - void Log (const char * text) + void Log(const std::string& text) { - QString msg(QString::fromUtf8(text)); + QString msg(QString::fromStdString(text)); QRegularExpression rx; // ignore 'Init:' and 'Mod:' prefixes rx.setPattern(QLatin1String("^\\s*(Init:|Mod:)\\s*"));