diff options
author | Lars Knoll <lars.knoll@qt.io> | 2019-11-03 21:47:23 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-11-04 12:52:26 +0000 |
commit | 06456873fceddcd340431fc5999c50ff6d3c2371 (patch) | |
tree | 7a5bf55f8c3494bfb407f7f57b01c4854a236951 /tests/manual/corelib/tools/qlist/main.cpp | |
parent | ab6affac107cb97e7b6decbe55621259cb8a9b92 (diff) |
Get rid of QT_STRICT_ITERATORS
The concept was a nice idea to avoid accidental detach() calls
in implicitly shared containers, but it conflicts with a C++11
compatible API for them, with signatures for modifying methods
taking a const_iterator as argument and returning an iterator
(e.g. iterator erase(const_iterator)).
Change-Id: Ia33124bedbd260774a0a66f49aedd84e19c9971b
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/manual/corelib/tools/qlist/main.cpp')
-rw-r--r-- | tests/manual/corelib/tools/qlist/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/manual/corelib/tools/qlist/main.cpp b/tests/manual/corelib/tools/qlist/main.cpp index 3f8ade5778..0b54105f5e 100644 --- a/tests/manual/corelib/tools/qlist/main.cpp +++ b/tests/manual/corelib/tools/qlist/main.cpp @@ -26,7 +26,6 @@ ** ****************************************************************************/ #include <QDebug> -//#define QT_STRICT_ITERATORS #include <QVector> void testErase() { @@ -55,4 +54,4 @@ int main() // testErase(); testInsert(); return 0; -}
\ No newline at end of file +} |