diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-03-15 21:20:46 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-10-07 18:11:18 +0200 |
commit | e08fa9cc01f11ce61258e0d9a138118bff3453c8 (patch) | |
tree | edf5117cded74c14a85d22db5bb441dad812bf7e /src/corelib/kernel/qcore_unix.cpp | |
parent | d4e62a9768c4ce4964f65cca15b3da0a36b910f1 (diff) |
qcore_mac_p.h: compile-optimize inline swap functions
Instead of using the overly-generic qSwap() monster, use
- qt_ptr_swap() for swapping raw pointers
- member-swap for swapping smart pointers
- std::swap() for swapping scalars
In QtCore, this has proven to give a nice reduction in compile time
for Qt users, cf. b1b0c2970e480ef460a61f37fa430dc443390358.
Pick-to: 6.4 6.3 6.2
Task-number: QTBUG-97601
Change-Id: Iad8e6c11ebcc3ff822479c36f5faff88992b1165
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/kernel/qcore_unix.cpp')
0 files changed, 0 insertions, 0 deletions