Compile with C++0x enabled
authorLars Knoll <lars.knoll@nokia.com>
Tue, 12 Jul 2011 07:08:05 +0000 (09:08 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 12 Jul 2011 09:04:04 +0000 (11:04 +0200)
Change-Id: Iffee297c6bc3a53a95cd42fe6ad8901d7b791a11
Reviewed-on: http://codereview.qt.nokia.com/1485
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
tests/auto/qbytearray/tst_qbytearray.cpp

index 5488559..e2f64b8 100644 (file)
@@ -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;