summaryrefslogtreecommitdiffstats
path: root/src/dbus/qdbuspendingcall.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-03-15 16:25:29 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-03-17 06:14:58 +0000
commit9f8da21239a4d9e22a2d5633920c36af4eb4a6c7 (patch)
tree0d29cfe0cc836c446c49a72028eaecca12750d08 /src/dbus/qdbuspendingcall.h
parent73d0174f50374090d0d0b45322e86b2ca825886d (diff)
QDateTime: future-proof swap()
In Qt 7 32-bit builds, the ShortData will be larger than the d-pointer. So don't swap() the d-pointer, but a) delegate to Data to swap itself and b) swap the ShortData there, adding a static_assert in the .cpp file that triggers when the assumption that ShortData is always at least as large as a pointer is violated. Found while porting away from overly-generic qSwap(), so done that, too. Task-number: QTBUG-97601 Pick-to: 6.3 6.2 Change-Id: I5139da58d99e9491a582ff2cb2f817cd96952044 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/dbus/qdbuspendingcall.h')
0 files changed, 0 insertions, 0 deletions