Skip to content

Commit

Permalink
Fix compiler warning from deprecated QString conversion
Browse files Browse the repository at this point in the history
Use the string literals instead.

Change-Id: Ic85d0845c211744a79af7e48b180129797d3d612
Reviewed-by: Sona Kurazyan <[email protected]>
Reviewed-by: Assam Boudjelthia <[email protected]>
  • Loading branch information
vohi committed May 6, 2022
1 parent b0e613d commit 58df315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/global/qlogging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58df315

Please sign in to comment.