diff options
Diffstat (limited to 'src/corelib/text/qstringview.h')
-rw-r--r-- | src/corelib/text/qstringview.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/text/qstringview.h b/src/corelib/text/qstringview.h index b3206cc6e7..bc2c25f83d 100644 --- a/src/corelib/text/qstringview.h +++ b/src/corelib/text/qstringview.h @@ -167,11 +167,11 @@ private: return result; } #endif - return QtPrivate::qustrlen(reinterpret_cast<const ushort *>(str)); + return QtPrivate::qustrlen(reinterpret_cast<const char16_t *>(str)); } static qsizetype lengthHelperPointer(const QChar *str) noexcept { - return QtPrivate::qustrlen(reinterpret_cast<const ushort *>(str)); + return QtPrivate::qustrlen(reinterpret_cast<const char16_t *>(str)); } template <typename Char> |