From 7cafcd4867ec1543d09fe071f99a5563cb54433c Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 13 May 2020 09:56:40 +0200 Subject: [PATCH] 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 --- src/corelib/global/qlogging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index db4224db91..4033afbe57 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -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