diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp index bb517e3a53c..243ad4fdfa4 100644 --- a/src/corelib/text/qbytearray.cpp +++ b/src/corelib/text/qbytearray.cpp @@ -2625,7 +2625,7 @@ qsizetype QtPrivate::count(QByteArrayView haystack, QByteArrayView needle) noexc qsizetype QByteArray::count(char ch) const { - return static_cast(countCharHelper(*this, ch)); + return countCharHelper(*this, ch); } #if QT_DEPRECATED_SINCE(6, 4)