qt5base-lts/tests/auto
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
..
bic/data Add binary compatibility file built against 6.5.0 2023-04-19 15:40:36 +00:00
cmake CMake: Place resources into static libraries, not object libraries 2023-08-04 14:15:05 +02:00
concurrent CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
corelib Tests: Fix typo in qfuture test 2023-08-07 23:56:10 +02:00
dbus Fix spelling of D-Bus in the source code 2023-07-06 21:51:29 +02:00
gui tst_foreignwindow: Add basic test of foreign window reparenting 2023-08-07 17:58:53 +02:00
guiapplauncher Move Weather Anchor Layout example to manual tests 2023-03-02 05:55:57 +01:00
network tst_QHostInfo: fix mem-leaks in threadSafetyAsynchronousAPI() 2023-07-19 04:52:28 +00:00
opengl tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
other CMake: remove check for cxx11_future 2023-08-02 12:36:18 -07:00
printsupport Android: temporarily skip tst_qprinterinfo, tst_qwidget and tst_qwindow 2023-07-26 20:12:49 +03:00
shared tests: remove PlatformInputContext::filterEvent() 2023-01-18 13:21:06 +01:00
sql SQL/PSQL: Handle jsonb operators in prepared queries 2023-07-23 16:49:15 +02:00
testlib Correct some testlib selftest data: blacklisted does not qFatal() 2023-07-31 18:16:05 +02:00
tools tst_qdbuscpp2xml: Remove unused variables 2023-08-03 16:09:17 +02:00
wasm CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
widgets tst_QWizard: port away from Q_FOREACH[5/5]: CombinationsTestData ctor 2023-08-07 21:56:10 +00:00
xml CMake: Make qtbase tests standalone projects 2023-07-05 15:09:32 +02:00
CMakeLists.txt CI: Enable tests under corelib/text for Wasm platform 2023-07-10 14:53:34 +02:00
network-settings.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00