From 58df315ad11361323ed0dee125b1ee58e5958dd8 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Tue, 26 Apr 2022 13:51:01 +0200 Subject: [PATCH] Fix compiler warning from deprecated QString conversion Use the string literals instead. Change-Id: Ic85d0845c211744a79af7e48b180129797d3d612 Reviewed-by: Sona Kurazyan Reviewed-by: Assam Boudjelthia --- 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 88656e6b86..b57f36bb6e 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -1740,7 +1740,7 @@ static bool android_default_message_handler(QtMsgType type, // If application name is a tag ensure it has no spaces // If a category is defined, use it as an Android logging tag __android_log_print(priority, isDefaultCategory(context.category) ? - qPrintable(QCoreApplication::applicationName().replace(" ", "_")) : context.category, + qPrintable(QCoreApplication::applicationName().replace(u' ', u'_')) : context.category, "%s\n", qPrintable(formattedMessage)); return true; // Prevent further output to stderr