diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index 40ef9875b00..b8f208e82ec 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -635,7 +635,7 @@ QBitArray QBitArray::operator~() const return QBitArray(*this).inverted_inplace(); } -#include "qbytearray.h" // also includes inlined API +#include "qbytearray.h" QByteArray QByteArray::left(qsizetype len) const { diff --git a/src/corelib/text/qbytearray.h b/src/corelib/text/qbytearray.h index 3c8a3bba454..5902b015167 100644 --- a/src/corelib/text/qbytearray.h +++ b/src/corelib/text/qbytearray.h @@ -136,12 +136,12 @@ public: [[nodiscard]] char back() const { return at(size() - 1); } [[nodiscard]] inline char &back(); - QT_CORE_INLINE_SINCE(6, 7) + QT_CORE_INLINE_SINCE(6, 8) qsizetype indexOf(char c, qsizetype from = 0) const; qsizetype indexOf(QByteArrayView bv, qsizetype from = 0) const { return QtPrivate::findByteArray(qToByteArrayViewIgnoringNull(*this), from, bv); } - QT_CORE_INLINE_SINCE(6, 7) + QT_CORE_INLINE_SINCE(6, 8) qsizetype lastIndexOf(char c, qsizetype from = -1) const; qsizetype lastIndexOf(QByteArrayView bv) const { return lastIndexOf(bv, size()); } @@ -706,7 +706,7 @@ bool QByteArray::isNull() const noexcept return d->isNull(); } #endif -#if QT_CORE_INLINE_IMPL_SINCE(6, 7) +#if QT_CORE_INLINE_IMPL_SINCE(6, 8) qsizetype QByteArray::indexOf(char ch, qsizetype from) const { return qToByteArrayViewIgnoringNull(*this).indexOf(ch, from);