diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-08-17 09:20:37 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-08-27 05:09:20 +0000 |
commit | 3c7d67a04419345787b7aa6ce9ca13c9ded1ba82 (patch) | |
tree | 5f9cf85cf0270f755576076d03dfe0940f6a1c1f /LICENSE.LGPLv21 | |
parent | efcae5d5caefcaf86bfb76fce7d4d1a5c4229753 (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 'LICENSE.LGPLv21')
0 files changed, 0 insertions, 0 deletions