summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2019-10-30 16:33:11 +0100
committerLars Knoll <lars.knoll@qt.io>2019-10-30 16:36:38 +0100
commit7f70a4afa4ba63ffd4f9f989c89220dbf4f77adb (patch)
treebc4477033a282b6777068f976526823735453e79
parentce59d0ecb244f5dbd62171132049ec0cf446ad2e (diff)
Ensure QListIterator gets defined inside the qtnamespace
Change-Id: I9078893d530836396453c8cc0d2870d77989f076 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r--src/corelib/tools/qlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h
index 2e9fad3bfe..515fba6530 100644
--- a/src/corelib/tools/qlist.h
+++ b/src/corelib/tools/qlist.h
@@ -44,10 +44,12 @@
#include <QtCore/qcontainerfwd.h>
#if !defined(QT_NO_JAVA_STYLE_ITERATORS)
+QT_BEGIN_NAMESPACE
template<typename T>
using QMutableListIterator = QMutableVectorIterator<T>;
template<typename T>
using QListIterator = QVectorIterator<T>;
+QT_END_NAMESPACE
#endif
#include <QtCore/qbytearraylist.h>