QtSerialBus: replace qSwap with std::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.

Task-number: QTBUG-97601
Pick-to: 6.3 6.2 5.15
Change-Id: I89336e147d12e6d6563fab2e76f5ae7eec4ff220
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
commitfe7cd7255f82b3884651045422192bd7960cb0be
parent7df79c0d460409faccae29eeeda05ca38cf205a4
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeWed, 11 May 2022 18:25:01 +0200