Fix compiler warning from deprecated QString conversion

Use the string literals instead.

Change-Id: Ic85d0845c211744a79af7e48b180129797d3d612
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
bb10
Volker Hilsheimer 2022-04-26 13:51:01 +02:00
parent b0e613d10e
commit 58df315ad1
1 changed files with 1 additions and 1 deletions

View File

@ -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