summaryrefslogtreecommitdiffstats
path: root/src/network/ssl/qsslerror.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-03-15 21:20:46 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-17 22:00:57 +0000
commit7e5229aa535c362ea44db1590d83274e26c1ded3 (patch)
treebcdd0acf93f052bba52ffd1b93ee9d759a1e2995 /src/network/ssl/qsslerror.h
parentfcd5a02886848533c22bca80879888c1ed694195 (diff)
QtNetwork: 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. Task-number: QTBUG-97601 Change-Id: I26586da1f158fe6b18314abd8cf9bb040bc9cad1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> (cherry picked from commit f438d29b6fdfff0680b09e88590ee47b22877776) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/network/ssl/qsslerror.h')
-rw-r--r--src/network/ssl/qsslerror.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/ssl/qsslerror.h b/src/network/ssl/qsslerror.h
index a5865a5a33..326e35301c 100644
--- a/src/network/ssl/qsslerror.h
+++ b/src/network/ssl/qsslerror.h
@@ -108,7 +108,7 @@ public:
QSslError(const QSslError &other);
void swap(QSslError &other) noexcept
- { qSwap(d, other.d); }
+ { d.swap(other.d); }
~QSslError();
QSslError &operator=(QSslError &&other) noexcept { swap(other); return *this; }