From 1f96dc553bc1a1816783e4ccdf2fda87f0d17d04 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Wed, 2 Dec 2020 19:47:01 +0100 Subject: [PATCH] QString::fromUtf8: remove a stray cast to int Change-Id: I0dba7ba130c3fa96eda63a0fa1a39c5f0bb863b7 Reviewed-by: Thiago Macieira (cherry picked from commit 1ebccf3426ef407d174fd9cdfd22da742111331e) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/text/qstring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/text/qstring.h b/src/corelib/text/qstring.h index 013b367b5ce..eddb21b7c26 100644 --- a/src/corelib/text/qstring.h +++ b/src/corelib/text/qstring.h @@ -742,7 +742,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