Gui: splashscreen: Use std::string as Log parameter
This commit is contained in:
committed by
WandererFan
parent
8042f3af12
commit
3668194185
@@ -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*"));
|
||||
|
||||
Reference in New Issue
Block a user