diff --git a/tests/auto/qdatastream/tst_qdatastream.cpp b/tests/auto/qdatastream/tst_qdatastream.cpp index 55e8d19e7..9786b2535 100644 --- a/tests/auto/qdatastream/tst_qdatastream.cpp +++ b/tests/auto/qdatastream/tst_qdatastream.cpp @@ -2032,7 +2032,7 @@ void tst_QDataStream::stream_writeError() TEST_WRITE_ERROR(<< (quint32)1) TEST_WRITE_ERROR(<< (qint64)1) TEST_WRITE_ERROR(<< (quint64)1) - TEST_WRITE_ERROR(<< "hello") + TEST_WRITE_ERROR(<< QByteArray("hello")) TEST_WRITE_ERROR(<< (float)1.0) TEST_WRITE_ERROR(<< (double)1.0) TEST_WRITE_ERROR(.writeRawData("test", 4))