qt6-bb10/tests/auto/network/kernel/qnetworkinterface
Ahmad Samir 1a98293200 QtNetwork auto tests: port Q_FOREACH to ranged-for [1]
The loops were iterating over a temporary, so use a local const auto
variable to hold it, and use ranged-for.

Drive-by, make the for-loop variable const& instead of copying it,
for any object that has a d-pointer (QNetworkAddressEntry, QHostAddress,
QNetworkInterface).

Task-number: QTBUG-115839
Change-Id: If96c0b2a6142fe2fa2ed45ed7e2435cc1f80e005
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2023-08-22 21:47:16 +03:00
..
.gitignore
CMakeLists.txt CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
tst_qnetworkinterface.cpp QtNetwork auto tests: port Q_FOREACH to ranged-for [1] 2023-08-22 21:47:16 +03:00