diff --git a/src/plugins/qmlprofiler/qmlevent.h b/src/plugins/qmlprofiler/qmlevent.h index 1f2fe202078..782df2a0f17 100644 --- a/src/plugins/qmlprofiler/qmlevent.h +++ b/src/plugins/qmlprofiler/qmlevent.h @@ -159,9 +159,9 @@ struct QmlEvent { { switch (m_dataType) { case External8Bit: - return QString::fromUtf8(static_cast(m_data.external)); + return QString::fromUtf8(static_cast(m_data.external), m_dataLength); case Inline8Bit: - return QString::fromUtf8(m_data.internalChar); + return QString::fromUtf8(m_data.internalChar, m_dataLength); default: Q_UNREACHABLE(); return QString();