Gui: splashscreen: Use std::string as Log parameter

This commit is contained in:
Ladislav Michl
2024-08-25 16:42:36 +02:00
committed by WandererFan
parent 8042f3af12
commit 3668194185

View File

@@ -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*"));