Go to file
Marc Mutz ed9f8a0e9d bearer plugins: eradicate Java-style iterators and Q_FOREACH
This is the simple part of the job, removing Q_FOREACH loops
which are obviously safe to be replaced by C++11 range-for.

In QNetworkManagerEngine::sessionStateForId(), instead of
iterating over QHash::keys(), iterate over the QHash
directly (using C++11 range-for, as we're only using the
values, not the keys).

In QNetworkManagerEngine::connectToId(), simplify the loop
body by merging three identical if blocks into one.

Saves ~1.7KiB accumulated over the three Linux bearer plugins:
connman, generic, nm (optimized GCC 6.1 Linux AMD64 build).

Change-Id: Ic66139c25f7e2173f5a919927e269b873334d2c8
Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
2016-09-02 12:46:41 +00:00
bin automatically exclude generated headers from syncqt checks 2016-08-18 17:11:06 +00:00
config.tests compile.test: append any unknown arguments to the qmake command-line 2016-08-25 12:09:08 +00:00
dist Add Qt 5.7.0 changelog 2016-06-10 06:48:56 +00:00
doc Say hello to Q_NAMESPACE 2016-08-19 15:41:27 +00:00
examples Add support for Apple watchOS 2016-08-19 21:05:55 +00:00
lib Purge all fonts 2015-08-18 19:59:14 +00:00
mkspecs Enable precompiled headers on iOS, tvOS, watchOS 2016-09-02 08:25:31 +00:00
qmake Enable precompiled headers on iOS, tvOS, watchOS 2016-09-02 08:25:31 +00:00
src bearer plugins: eradicate Java-style iterators and Q_FOREACH 2016-09-02 12:46:41 +00:00
tests Fix output location for generated files 2016-09-02 04:58:53 +00:00
tools ensure that no license queries are made in -redo mode 2016-08-25 11:58:46 +00:00
util Handle indirect sibling selector 2016-07-27 20:18:02 +00:00
.gitattributes
.gitignore Merge remote-tracking branch 'origin/5.7' into 5.8 2016-08-29 15:30:17 +02:00
.qmake.conf Merge remote-tracking branch 'origin/5.7' into dev 2016-05-23 21:09:46 +02:00
.tag
config_help.txt add configure test result caching 2016-08-19 04:28:55 +00:00
configure QSettings: Remove calls to deprecated API on macOS 2016-08-30 01:52:53 +00:00
configure.bat don't rely on configure.exe being in source packages any more 2016-08-26 14:22:51 +00:00
configure.json Enable precompiled headers on iOS, tvOS, watchOS 2016-09-02 08:25:31 +00:00
configure.pri unbreak pkg-config use with cache 2016-08-30 13:24:02 +00:00
header.BSD Add new license header templates and license files 2016-01-14 20:43:46 +00:00
header.BSD-OLD Add new license header templates and license files 2016-01-14 20:43:46 +00:00
header.COMM Add header template for commercial only modules 2015-10-19 10:37:18 +00:00
header.FDL Add new license header templates and license files 2016-01-14 20:43:46 +00:00
header.FDL-OLD Add new license header templates and license files 2016-01-14 20:43:46 +00:00
header.GPL Add new license header templates and license files 2016-01-14 20:43:46 +00:00
header.GPL-EXCEPT Add new license header templates and license files 2016-01-14 20:43:46 +00:00
header.LGPL Add new license header templates and license files 2016-01-14 20:43:46 +00:00
header.LGPL3 Update copyright headers 2015-02-11 06:49:51 +00:00
header.LGPL3-COMM Update copyright headers 2015-02-11 06:49:51 +00:00
header.LGPL21 Update copyright headers 2015-02-11 06:49:51 +00:00
header.LGPL-NOGPL2 Add new license header templates and license files 2016-01-14 20:43:46 +00:00
header.LGPL-ONLY Update copyright headers 2015-02-11 06:49:51 +00:00
INSTALL Doc: Update links in INSTALL file 2015-02-16 09:06:41 +00:00
LGPL_EXCEPTION.txt Update copyright headers 2015-02-11 06:49:51 +00:00
LICENSE.FDL
LICENSE.GPL2 Add new license header templates and license files 2016-01-14 20:43:46 +00:00
LICENSE.GPL3 Add new license header templates and license files 2016-01-14 20:43:46 +00:00
LICENSE.GPL3-EXCEPT Add new license header templates and license files 2016-01-14 20:43:46 +00:00
LICENSE.GPLv3 Expand license scope from "Qt GUI Toolkit" to "Qt Toolkit" 2016-06-15 07:02:32 +00:00
LICENSE.LGPL3 Add new license header templates and license files 2016-01-14 20:43:46 +00:00
LICENSE.LGPLv3 Expand license scope from "Qt GUI Toolkit" to "Qt Toolkit" 2016-06-15 07:02:32 +00:00
LICENSE.LGPLv21 Expand license scope from "Qt GUI Toolkit" to "Qt Toolkit" 2016-06-15 07:02:32 +00:00
LICENSE.PREVIEW.COMMERCIAL Add new license header templates and license files 2016-01-14 20:43:46 +00:00
qtbase.pro add configure test result caching 2016-08-19 04:28:55 +00:00
sync.profile Improve library version handling 2016-08-19 04:27:06 +00:00