diff options
| author | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-01-15 18:04:36 +0300 |
|---|---|---|
| committer | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-01-16 08:47:20 +0000 |
| commit | 6e3fd69409849bc4803b104a7674139fa630eec5 (patch) | |
| tree | 94c5ed626eb2e45049b9c701aacffa370b582d25 /src/dialogs/plugin.cpp | |
| parent | fa1ff822b779c2d649517a5fefef81af8affaa68 (diff) | |
Replace foreach with range-based for
Change-Id: Ieb9019b62696479a4e0317a590bceaeb30abf62c
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/dialogs/plugin.cpp')
| -rw-r--r-- | src/dialogs/plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dialogs/plugin.cpp b/src/dialogs/plugin.cpp index 657400245..5afddeca5 100644 --- a/src/dialogs/plugin.cpp +++ b/src/dialogs/plugin.cpp @@ -199,7 +199,8 @@ protected: #if defined(Q_OS_IOS) mobileTouchPlatform = true; #elif defined(Q_OS_ANDROID) || defined(Q_OS_BLACKBERRY) || defined(Q_OS_QNX) || defined(Q_OS_WINRT) - foreach (const QTouchDevice *dev, QTouchDevice::devices()) + const auto devices = QTouchDevice::devices(); + for (const QTouchDevice *dev : devices) if (dev->type() == QTouchDevice::TouchScreen) mobileTouchPlatform = true; #endif |
