aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqml.cpp')
-rw-r--r--src/qml/qml/qqml.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp
index f951fb6a14..1e051fd37a 100644
--- a/src/qml/qml/qqml.cpp
+++ b/src/qml/qml/qqml.cpp
@@ -1472,8 +1472,10 @@ void AOTCompiledContext::writeToConsole(
const QV4::CppStackFrame *frame = engine->handle()->currentStackFrame;
Q_ASSERT(frame);
- QMessageLogger logger(qUtf8Printable(frame->source()), frame->lineNumber(),
- qUtf8Printable(frame->function()), loggingCategory->categoryName());
+ const QByteArray source(frame->source().toUtf8());
+ const QByteArray function(frame->function().toUtf8());
+ QMessageLogger logger(source.constData(), frame->lineNumber(),
+ function.constData(), loggingCategory->categoryName());
switch (type) {
case QtDebugMsg: