diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2024-12-06 08:19:20 -0800 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2024-12-12 19:38:02 +0000 |
| commit | b98cf4fc4afaf55145c34ba06d61fec38fadc25d (patch) | |
| tree | 1844ef4e2c785cd7b9467bec10c56013abab6e74 /src/corelib/io/qbuffer.cpp | |
| parent | 973d0c4c5160200c188f81da5df064510315f22d (diff) | |
QString::fromUcs4: use std::char_traits or wcslen() to find the size
... when the user passes size = -1. std::char_traits<char32_t>::length()
doesn't appear to be an any better implementation than our simple loop,
but maybe some compiler will optimize it.
wcslen() is usually optimized in the C libraries, even for Unix
platforms that hardly ever use it (it's used as a fallback in qustrlen()
for non-x86 Windows systems).
Pick-to: 6.8 6.9
Change-Id: Ia143270869a3a7cf5754fffdc17e500fc454397b
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/io/qbuffer.cpp')
0 files changed, 0 insertions, 0 deletions
