From 6054ca2a313d6164874e3e57bd5fb12be66a5c44 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 12 Jul 2011 09:08:05 +0200 Subject: Compile with C++0x enabled Change-Id: Iffee297c6bc3a53a95cd42fe6ad8901d7b791a11 Reviewed-on: http://codereview.qt.nokia.com/1485 Reviewed-by: Qt Sanity Bot Reviewed-by: Olivier Goffart --- tests/auto/qbytearray/tst_qbytearray.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto') diff --git a/tests/auto/qbytearray/tst_qbytearray.cpp b/tests/auto/qbytearray/tst_qbytearray.cpp index 54885591a7..e2f64b84f8 100644 --- a/tests/auto/qbytearray/tst_qbytearray.cpp +++ b/tests/auto/qbytearray/tst_qbytearray.cpp @@ -883,7 +883,7 @@ void tst_QByteArray::indexOf_data() QTest::newRow( "18" ) << QByteArray("aBc") << QByteArray("BC") << 0 << -1; // task 203692 - static const char h19[] = {'x', 0x00, 0xe7, 0x25, 0x1c, 0x0a}; + static const char h19[] = {'x', 0x00, (char)0xe7, 0x25, 0x1c, 0x0a}; static const char n19[] = {0x00, 0x00, 0x01, 0x00}; QTest::newRow( "19" ) << QByteArray(h19, sizeof(h19)) << QByteArray(n19, sizeof(n19)) << 0 << -1; @@ -963,7 +963,7 @@ void tst_QByteArray::lastIndexOf_data() QTest::newRow( "24" ) << QByteArray("aBc") << QByteArray("BC") << 0 << -1; // task 203692 - static const char h25[] = {0x00, 0xbc, 0x03, 0x10, 0x0a }; + static const char h25[] = {0x00, (char)0xbc, 0x03, 0x10, 0x0a }; static const char n25[] = {0x00, 0x00, 0x01, 0x00}; QTest::newRow( "25" ) << QByteArray(h25, sizeof(h25)) << QByteArray(n25, sizeof(n25)) << 0 << -1; -- cgit v1.2.3