diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-08-01 18:34:45 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-08-02 18:18:01 +0200 |
commit | 357db9ceabddcdce95ee1bc7f534eb00e6e10bad (patch) | |
tree | 6ed29b3a76618a7985726fb415e19b639ff3e0b1 /src/corelib/global/qglobal.h | |
parent | 777c7a2288ee111a668e17bbbb03b386c1f05737 (diff) |
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 <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qglobal.h')
-rw-r--r-- | src/corelib/global/qglobal.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<const wchar_t*>(static_cast<const void*>(QString(string).utf16())) + static_cast<const wchar_t*>(static_cast<const void*>(QtPrivate::asString(string).utf16())) #endif class QString; |