qt5base-lts/tests/auto/network/socket
Ahmad Samir bca2805b34 QtNetwork auto tests: port Q_FOREACH to ranged-for [2]
The containers are created locally in the top level test functions, they
can't be made const due to the way they are filled, however the loop
body don't change them; even if the code in a loop would cause
re-entrance du due to signal emittance or events processing, those
containers aren't affected and aren't changed during iteration because
the top-level test functions themselves aren't re-entered, hence
use std::as_const.

Drive-by change: take QHostAddress by const& when it's used as a
for-loop variable (it has a QExplicitlySharedDataPointer d-pointer).

Task-number: QTBUG-115839
Change-Id: I443169e10d973aba2f62854aba200fc2dc2c80aa
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2023-08-22 21:47:34 +03:00
..
platformsocketengine CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
qabstractsocket CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
qhttpsocketengine CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
qlocalsocket CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
qsctpsocket tst_QSctpSocket: replace QList with const array 2023-08-08 16:03:28 +02:00
qsocks5socketengine CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
qtcpserver QtNetwork auto tests: port Q_FOREACH to ranged-for [2] 2023-08-22 21:47:34 +03:00
qtcpsocket QtNetwork auto tests: port Q_FOREACH to ranged-for [1] 2023-08-22 21:47:16 +03:00
qudpsocket QtNetwork auto tests: port Q_FOREACH to ranged-for [2] 2023-08-22 21:47:34 +03:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00