diff options
author | Peter Kümmel <syntheticpp@gmx.net> | 2012-12-01 12:21:20 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-06 16:45:52 +0100 |
commit | 24013d8a875e6279921af00d81e85c1f59731279 (patch) | |
tree | e230c193dfe83b2a404bcdbf6a2f27f5b205f76b /tests | |
parent | c7dddf2ae5bf7ab94cb6fa571ffb160c16a1a879 (diff) |
Don't pass invalid strings to strcmp()
The address behind a string doesn't point to a string.
Change-Id: Ic54f652ae781fea278f60cc49d219c1c610ba29f
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp index ad7d8b2ab9..ade8cc0ad0 100644 --- a/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp +++ b/tests/auto/corelib/tools/qarraydata/tst_qarraydata.cpp @@ -1561,7 +1561,7 @@ void tst_QArrayData::literals() #endif QVERIFY(v.isSharable()); - QCOMPARE((const char *)(v.constBegin() + v.size()), (const char *)v.constEnd()); + QCOMPARE((void*)(v.constBegin() + v.size()), (void*)v.constEnd()); for (int i = 0; i < 10; ++i) QCOMPARE(const_(v)[i], char('A' + i)); |