qt5base-lts/tests/auto/widgets
Marc Mutz e0c1ae09fd tst_QWizard: port away from Q_FOREACH[5/5]: CombinationsTestData ctor
This is iterating over data member containers that are otherwise only
touched in the constructor of the same object. Luckily, the
initialization of these containers does not require *this, so use
NSDMI and mark the containers const, proving they can never be
modified and thus the protective copy of Q_FOREACH isn't required. Now
that we got rid of Q_FOREACH, we can and do make them arrays for extra
measure ("never use dynamically-sized containers for statically-sized
data").

Unfortunately, C++ neither allows us to use "flexible array
members" nor AAA in NSDMI, so grab the nettle and supply the array
size manually (ever so slightly violating DRY, but the compiler will
complain if we get it wrong).

Task-number: QTBUG-115803
Pick-to: 6.6 6.5
Change-Id: Ibb2ce48b6dcaf2e9d3d1a625602f3865d280c7c6
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-08-07 21:56:10 +00:00
..
dialogs tst_QWizard: port away from Q_FOREACH[5/5]: CombinationsTestData ctor 2023-08-07 21:56:10 +00:00
effects CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
graphicsview tests: blacklist tst_QGraphicsItem::itemUsesExtendedStyleOption() on Wayland 2023-07-18 08:25:41 +02:00
itemviews QAbstractScrollArea: Don't include size of invisible scrollbars 2023-07-11 01:34:19 +02:00
kernel tests: blacklist tst_QWidget::render() on Wayland 2023-08-03 07:23:37 +02:00
styles CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
util CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
widgets tst_QComboBox: port away from Q_FOREACH 2023-08-07 13:28:10 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00