diff --git a/src/corelib/text/qstring.h b/src/corelib/text/qstring.h index acdda5ec84..20a9b46e4c 100644 --- a/src/corelib/text/qstring.h +++ b/src/corelib/text/qstring.h @@ -748,7 +748,7 @@ public: #if defined(__cpp_char8_t) || defined(Q_CLANG_QDOC) Q_WEAK_OVERLOAD static inline QString fromUtf8(const char8_t *str, qsizetype size) - { return fromUtf8(reinterpret_cast(str), int(size)); } + { return fromUtf8(reinterpret_cast(str), size); } #endif static QString fromLocal8Bit(QByteArrayView ba); Q_WEAK_OVERLOAD