diff --git a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp index d8e7a1d2ef1..3318593166d 100644 --- a/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp +++ b/tests/auto/corelib/text/qbytearray/tst_qbytearray.cpp @@ -1598,7 +1598,6 @@ void tst_QByteArray::replaceWithEmptyNeedleInsertsBeforeEachChar() QFETCH(const QByteArray, result); const auto check = [](auto haystack, auto needle, auto replacement, auto result) { - constexpr bool isByteArray = std::is_same_v; { // shared auto copy = haystack;