diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2023-07-16 10:40:02 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-07-19 04:52:14 +0000 |
| commit | 74707948652d1b251b2296ce0b3a515b2ddbcc08 (patch) | |
| tree | e020c21ba44cc97e56d17bf90adf76ec932b7a05 /src/corelib/thread/qfutureinterface.cpp | |
| parent | 65647d54b9fddb0b0e3238024d79e12e4bf53295 (diff) | |
QMetaCallEvent::create(): re-order operations
... so that everything that requires argv is done first.
Also introduce a new variable, argc, for sizeof...(Args) + 1.
This will allow us to apply Extract Method to the tail end, which now
no longer depends on argv or Args.
As a drive-by, port from std::array to C arrays so we can use
automatic array size deduction: There's still no such thing as partial
CTAD (certainly not in C++17), so if we wanted std::array to deduce
the size, we'd also need to let it deduce the type; and we don't want
to add an ugly cast to the nullptr). C arrays, OTOH, can deduce the
size while fixing the type since K&R C.
Pick-to: 6.6
Change-Id: I5a694d4f4d41974eb4b1075ff030bbef902ed492
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/thread/qfutureinterface.cpp')
0 files changed, 0 insertions, 0 deletions
