7bac62f8cd
Use initializer lists rather than << entries. Use arrays where we don't need the lists at all. Make them const when they can be. Replace foreach with ranged-for. Use auto rather than naming iterator types and save end() at the start of the iteration to save re-requesting it each time round the loop. Reverse arguments to a QCOMPARE() as actual should come first and expected after, not the other way round. Change some casts from C-style to type-as-function-style, use QString literals rather than C-string literals that would need conversion at compile time and QLatin1String::arg in preference to arithmetic where the same format is duplicated. In the process, reworked one test to put its two iterations, one over good query strings, one over bad ones, into separate blocks using separate const arrays, instead of reusing a list with an uninformative name. Change-Id: I4a272be3eb58e9dca136238277b92379d6ca076d Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> |
||
---|---|---|
.. | ||
bic/data | ||
cmake | ||
concurrent | ||
corelib | ||
dbus | ||
gui | ||
guiapplauncher | ||
network | ||
opengl | ||
other | ||
printsupport | ||
shared | ||
sql | ||
testlib | ||
tools | ||
widgets | ||
xml | ||
CMakeLists.txt | ||
network-settings.h |