Android: Fix QString(char*) warnings in qlogging.cpp

Both context.file and context.function are already char*, so
using qPrintable() here would first convert them to QString()
with the scary constructor and then back again.

Change-Id: I822655c37fb8b9baaddc8f95d7c1842519859a0e
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
This commit is contained in:
Eskil Abrahamsen Blomfeldt 2013-09-06 09:14:00 +02:00 committed by The Qt Project
parent e15fbd5e8c
commit 1a4594c396

View File

@ -850,8 +850,9 @@ static void android_default_message_handler(QtMsgType type,
case QtFatalMsg: priority = ANDROID_LOG_FATAL; break;
};
__android_log_print(priority, "Qt", "%s:%d (%s): %s", qPrintable(context.file), context.line,
qPrintable(context.function), qPrintable(message));
__android_log_print(priority, "Qt", "%s:%d (%s): %s",
context.file, context.line,
context.function, qPrintable(message));
}
#endif //Q_OS_ANDROID