diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index d2ba2fb3ba7..982cb4bf34f 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -648,7 +648,7 @@ Q_CORE_EXPORT Q_DECL_CONST_FUNCTION bool qSharedBuild() noexcept; */ #ifndef qUtf16Printable # define qUtf16Printable(string) \ - static_cast(static_cast(QString(string).utf16())) + static_cast(static_cast(QtPrivate::asString(string).utf16())) #endif class QString;