summaryrefslogtreecommitdiffstats
path: root/tests/auto/qalgorithms
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-11-18 10:37:24 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-11-18 10:38:30 (GMT)
commit1dacf83b2c957d320e65335cfc5f9abfda94b7c0 (patch)
tree5b6b00890ee404ec4466c9e663eac0ba0b68c286 /tests/auto/qalgorithms
parent83a29194775dcf81729d3333b1b6e7b819243247 (diff)
downloadQt-1dacf83b2c957d320e65335cfc5f9abfda94b7c0.zip
Qt-1dacf83b2c957d320e65335cfc5f9abfda94b7c0.tar.gz
Qt-1dacf83b2c957d320e65335cfc5f9abfda94b7c0.tar.bz2
Fix tst_QAlgorithms::test_qBinaryFind on solaris
Comparison between const and non-const iterator is not safe Reviewed-by: Joao
Diffstat (limited to 'tests/auto/qalgorithms')
-rw-r--r--tests/auto/qalgorithms/tst_qalgorithms.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qalgorithms/tst_qalgorithms.cpp b/tests/auto/qalgorithms/tst_qalgorithms.cpp
index 176a451..1e24efe 100644
--- a/tests/auto/qalgorithms/tst_qalgorithms.cpp
+++ b/tests/auto/qalgorithms/tst_qalgorithms.cpp
@@ -620,8 +620,8 @@ void tst_QAlgorithms::test_qBinaryFind()
//-42 means not found
if (resultValue == -42) {
- QVERIFY(qBinaryFind(data.constBegin(), data.constEnd(), resultValue) == data.end());
- QVERIFY(qBinaryFind(data, resultValue) == data.end());
+ QVERIFY(qBinaryFind(data.constBegin(), data.constEnd(), resultValue) == data.constEnd());
+ QVERIFY(qBinaryFind(data, resultValue) == data.constEnd());
QVERIFY(qBinaryFind(data.begin(), data.end(), resultValue) == data.end());
QVERIFY(qBinaryFind(data.begin(), data.end(), resultValue, qLess<int>()) == data.end());
return;