diff --git a/src/gui/painting/qcolortransform.h b/src/gui/painting/qcolortransform.h index 7ec58c5617..392d74297b 100644 --- a/src/gui/painting/qcolortransform.h +++ b/src/gui/painting/qcolortransform.h @@ -66,7 +66,7 @@ public: } QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QColorTransform) - void swap(QColorTransform &other) noexcept { qSwap(d, other.d); } + void swap(QColorTransform &other) noexcept { d.swap(other.d); } Q_GUI_EXPORT QRgb map(QRgb argb) const; Q_GUI_EXPORT QRgba64 map(QRgba64 rgba64) const;