diff options
author | Marc Mutz <marc.mutz@qt.io> | 2024-02-29 11:46:11 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2024-03-01 08:45:09 +0100 |
commit | f70e113b2e895fb71db4ee6fb77a91f65e2deae9 (patch) | |
tree | eefde244f833fa162448ba95b874a239999ff473 /src/network | |
parent | f9653c4ff25a6c7d78e0d5cf2782d4c78d16281c (diff) |
QRestReply: use qt_ptr_swap instead of std::swap
qt_ptr_swap is our swap compile-time optimizer. It's faster because it
hardcodes noexcept(true) and std::swap() must calculate it.
Amends 9ba5c7ff6aa42c5701cf950d2137467a2d178833.
Pick-to: 6.7
Change-Id: I1b5a326276bd30638ac9b6dcf597abb5e53ada00
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/access/qrestreply.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qrestreply.h b/src/network/access/qrestreply.h index 0c84ef8488..c32fff1d4e 100644 --- a/src/network/access/qrestreply.h +++ b/src/network/access/qrestreply.h @@ -35,7 +35,7 @@ public: void swap(QRestReply &other) noexcept { wrapped.swap(other.wrapped); - std::swap(d, other.d); + qt_ptr_swap(d, other.d); } Q_NETWORK_EXPORT QNetworkReply *networkReply() const; |