summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-07-12 09:08:05 +0200
committerQt by Nokia <qt-info@nokia.com>2011-07-12 11:04:04 +0200
commit6054ca2a313d6164874e3e57bd5fb12be66a5c44 (patch)
tree58c4dede62e23ee50458d13e0e0b1f412179db1b /tests
parent94e110ca5f70f61bb7f6a99be121e5d78670a22a (diff)
Compile with C++0x enabled
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qbytearray/tst_qbytearray.cpp4
1 files changed, 2 insertions, 2 deletions
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;