diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-05-11 17:27:16 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-05-11 18:25:08 +0200 |
commit | 99b81083ccee7e1bd28749b1066599670713cefe (patch) | |
tree | f3e3c7fb18bfd9683cc02c1464b2af0acc17fc23 /src/core/api/qwebengineregisterprotocolhandlerrequest.cpp | |
parent | 3b4ed3123fde1f6e6d47b004cb5a4795b0d64387 (diff) | |
download | qtwebengine-99b81083ccee7e1bd28749b1066599670713cefe.tar.gz |
QtWebEngine: replace qSwap with member-swap where possible
qSwap() is a monster that looks for ADL overloads of swap() and also
detects the noexcept of the wrapped swap() function, so it should only
be used when the argument type is unknown. In the vast majority of
cases, the type is known to be efficiently std::swap()able or to have
a member-swap. Call either of these.
As a drive-by, unify all member-swap()s to be noexcept.
Task-number: QTBUG-97601
Pick-to: 6.3 6.2 5.15
Change-Id: I9184cab0ed74a1b32d62cf7c83dc1f1b7814c784
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/core/api/qwebengineregisterprotocolhandlerrequest.cpp')
0 files changed, 0 insertions, 0 deletions