summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/minimal/minimal.pro
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-08-17 09:20:37 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-08-27 05:09:20 +0000
commit3c7d67a04419345787b7aa6ce9ca13c9ded1ba82 (patch)
tree5f9cf85cf0270f755576076d03dfe0940f6a1c1f /src/plugins/platforms/minimal/minimal.pro
parentefcae5d5caefcaf86bfb76fce7d4d1a5c4229753 (diff)
offscreen plugin: eradicate Q_FOREACH loops
... by replacing them with C++11 for-each loops. In clearHash(), replace iteration over QHash::keys() with iteration over the hash itself. Also use the new const- iterator overload of QHash::erase() to save one attempted detach (in QHash::find()). Mark the plugin as QT_NO_FOREACH. Saves almost 2KiB (1.4%) in text size on optimized GCC 6.1 Linux AMD64 builds. Change-Id: I9bb3154130687c0061ea09b04ab5f627a4d2296c Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/plugins/platforms/minimal/minimal.pro')
0 files changed, 0 insertions, 0 deletions