summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2016-09-05 08:33:35 +0200
committerMarc Mutz <[email protected]>2016-09-14 14:29:24 +0000
commit67580ae6e2f75d93aae1e3412bf9c042b2992320 (patch)
treeffbe610823a027fd14317b3ca578f0305000aabb
parentc4031710944db746bc5787120ec0bccb2e71b96c (diff)
Eradicate last Q_FOREACH loop and mark the module as Q_FOREACH-free
Change-Id: I769fbf2082c7c90567a6e63cf43b8463a5d201dd Reviewed-by: Christian Stromme <[email protected]>
-rw-r--r--.qmake.conf2
-rw-r--r--src/webview/qwebview_winrt.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/.qmake.conf b/.qmake.conf
index aefa1e7..aae5d51 100644
--- a/.qmake.conf
+++ b/.qmake.conf
@@ -1,3 +1,5 @@
load(qt_build_config)
+DEFINES += QT_NO_FOREACH
+
MODULE_VERSION = 5.8.0
diff --git a/src/webview/qwebview_winrt.cpp b/src/webview/qwebview_winrt.cpp
index 5895ec4..88b5ddf 100644
--- a/src/webview/qwebview_winrt.cpp
+++ b/src/webview/qwebview_winrt.cpp
@@ -121,7 +121,7 @@ public:
~HStringList()
{
- foreach (const HSTRING &hString, d)
+ for (const HSTRING &hString : qAsConst(d))
WindowsDeleteString(hString);
}