QtCore/Windows: fix deprecated QChar conversions
global\qlogging.cpp:1698:91: warning: 'constexpr QChar::QChar(char)' is deprecated: Use fromUtf8, QStringLiteral, or QLatin1String [-Wdeprecated-declarations] Change-Id: I3c8a9499c9504bb6198dc187cb79239f705e2d39 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
80e0d0e08e
commit
7cafcd4867
@ -1695,7 +1695,7 @@ static bool win_message_handler(QtMsgType type, const QMessageLogContext &contex
|
||||
if (shouldLogToStderr())
|
||||
return false; // Leave logging up to stderr handler
|
||||
|
||||
const QString formattedMessage = qFormatLogMessage(type, context, message).append('\n');
|
||||
const QString formattedMessage = qFormatLogMessage(type, context, message).append(QLatin1Char('\n'));
|
||||
win_outputDebugString_helper(formattedMessage);
|
||||
|
||||
return true; // Prevent further output to stderr
|
||||
|
Loading…
Reference in New Issue
Block a user