summaryrefslogtreecommitdiffstats
path: root/installerfw.pri
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2015-04-01 13:41:21 +0200
committerKai Koehne <kai.koehne@theqtcompany.com>2015-04-08 08:36:57 +0000
commitc3f5744d2e0a2cd907c0601240d188b583ae79cb (patch)
tree1894ba867a12f77a4927d8c20549ae537556e555 /installerfw.pri
parentce703ed61b42bebe1e43a0e2ee00e815503edf20 (diff)
Don't mix iterator and const_iterator
Add QT_STRICT_ITERATORS to disallow implicit conversions between iterator and const_iterator. This avoids potential detaches of the Qt containers. Change-Id: I79d381f531ddda9ac402c6f5c63cdc7c6808a0bd Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'installerfw.pri')
-rw-r--r--installerfw.pri2
1 files changed, 1 insertions, 1 deletions
diff --git a/installerfw.pri b/installerfw.pri
index bed0451a9..a0506715e 100644
--- a/installerfw.pri
+++ b/installerfw.pri
@@ -112,7 +112,7 @@ CONFIG(static, static|shared) {
CONFIG += depend_includepath no_private_qt_headers_warning c++11
GIT_SHA1 = $$system(git rev-list --abbrev-commit -n1 HEAD)
-DEFINES += QT_NO_CAST_FROM_ASCII QT_USE_QSTRINGBUILDER "_GIT_SHA1_=$$GIT_SHA1" \
+DEFINES += QT_NO_CAST_FROM_ASCII QT_STRICT_ITERATORS QT_USE_QSTRINGBUILDER "_GIT_SHA1_=$$GIT_SHA1" \
IFW_VERSION_STR=$$IFW_VERSION_STR IFW_VERSION=$$IFW_VERSION
DEFINES += IFW_REPOSITORY_FORMAT_VERSION=$$IFW_REPOSITORY_FORMAT_VERSION