summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-05-24 16:24:19 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-01 12:27:32 +0200
commit9c5a77f0ef0b2ace0b11719142115eded4a7c05e (patch)
tree8fcc4e48e4b5b2c7a8cf0ea95054034538abed08 /tests/auto
parentb60f6447d0efc622792113bc4896c0dc176e8df3 (diff)
Make QVector compile with QT_STRICT_ITERATORS again
Move the iterator classes into QArrayTypedData and add constBegin() and constEnd() to that class. I also had to add an operator T*() to the strict iterators, since there are many places that expect the iterator to behave like a pointer (including in QVector itself). Change-Id: Icc5ed56ad47b013664a48eef9d31b5273aecb4e3 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/other/collections/collections.pro3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/other/collections/collections.pro b/tests/auto/other/collections/collections.pro
index 364ae21858..292c4e794d 100644
--- a/tests/auto/other/collections/collections.pro
+++ b/tests/auto/other/collections/collections.pro
@@ -3,3 +3,6 @@ TARGET = tst_collections
SOURCES += tst_collections.cpp
QT = core testlib
CONFIG += parallel_test
+
+# This test does not work with strict iterators
+DEFINES -= QT_STRICT_ITERATORS