From 357db9ceabddcdce95ee1bc7f534eb00e6e10bad Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Mon, 1 Aug 2022 18:34:45 +0200 Subject: qUtf16Printable: avoid creating a copy of a QString Amends daa7f5375c58464bbe92744599f1e2258445e259. Change-Id: I569efc4556341bfbce452bdf169c50a3b4be9ca7 Pick-to: 6.4 6.3 6.2 5.15 Reviewed-by: Thiago Macieira --- src/corelib/global/qglobal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/global/qglobal.h') diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index d2ba2fb3ba..982cb4bf34 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; -- cgit v1.2.3