aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlanybinding_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlanybinding_p.h')
-rw-r--r--src/qml/qml/qqmlanybinding_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlanybinding_p.h b/src/qml/qml/qqmlanybinding_p.h
index 116c5b81cc..00b5980000 100644
--- a/src/qml/qml/qqmlanybinding_p.h
+++ b/src/qml/qml/qqmlanybinding_p.h
@@ -415,8 +415,8 @@ public:
QQmlAnyBinding(const QQmlAnyBinding &other) noexcept { *this = other; }
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QQmlAnyBinding)
- friend void swap(QQmlAnyBinding &a, QQmlAnyBinding &b) noexcept { qSwap(a.d, b.d); }
- void swap(QQmlAnyBinding &other) noexcept { qSwap(d, other.d); }
+ void swap(QQmlAnyBinding &other) noexcept { d.swap(other.d); }
+ friend void swap(QQmlAnyBinding &lhs, QQmlAnyBinding &rhs) noexcept { lhs.swap(rhs); }
QQmlAnyBinding &operator=(const QQmlAnyBinding &other) noexcept
{