qt5base-lts/tests/auto/network
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
..
access Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
kernel QtNetwork auto tests: port Q_FOREACH to ranged-for [1] 2023-08-22 21:47:16 +03:00
selftest Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
socket QtNetwork auto tests: port Q_FOREACH to ranged-for [2] 2023-08-22 21:47:34 +03:00
ssl QtNetwork auto tests: port Q_FOREACH to ranged-for [2] 2023-08-22 21:47:34 +03:00
CMakeLists.txt Rid of 'special case' markers 2023-04-13 18:30:58 +02:00