From 3668194185e14aa8e700545ce7381a5ba561b01d Mon Sep 17 00:00:00 2001 From: Ladislav Michl Date: Sun, 25 Aug 2024 16:42:36 +0200 Subject: [PATCH] Gui: splashscreen: Use std::string as Log parameter --- src/Gui/Splashscreen.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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*"));