qt5base-lts/tests/auto/widgets/dialogs
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
..
qcolordialog CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qdialog CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qerrormessage CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qfiledialog tst_QFileDialog/2: port away from Q_FOREACH 2023-08-07 13:28:20 +02:00
qfiledialog2 tst_QFileDialog/2: port away from Q_FOREACH 2023-08-07 13:28:20 +02:00
qfontdialog CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qinputdialog CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qmessagebox CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qprogressdialog CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qsidebar CMake: Make widgets tests standalone projects 2023-07-05 15:09:32 +02:00
qwizard tst_QWizard: port away from Q_FOREACH[5/5]: CombinationsTestData ctor 2023-08-07 21:56:10 +00:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00