diff --git a/src/corelib/tools/qsize.cpp b/src/corelib/tools/qsize.cpp index 24a29f0213..4e45314722 100644 --- a/src/corelib/tools/qsize.cpp +++ b/src/corelib/tools/qsize.cpp @@ -159,9 +159,7 @@ QT_BEGIN_NAMESPACE void QSize::transpose() Q_DECL_NOTHROW { - int tmp = wd; - wd = ht; - ht = tmp; + qSwap(wd, ht); } /*! @@ -592,9 +590,7 @@ QDebug operator<<(QDebug dbg, const QSize &s) void QSizeF::transpose() Q_DECL_NOTHROW { - qreal tmp = wd; - wd = ht; - ht = tmp; + qSwap(wd, ht); } /*!