Commit 29ca117a authored by Anton Kudryavtsev's avatar Anton Kudryavtsev
Browse files

QSize: use qSwap in transpose()


... because that's what it does.

Change-Id: Ia3d4eefe2e675e4b2c2a4f01b8339ba69a40a5e9
Reviewed-by: default avatarMarc Mutz <marc.mutz@kdab.com>
parent f59b12c6
Branches
Tags
No related merge requests found
Showing with 2 additions and 6 deletions
...@@ -159,9 +159,7 @@ QT_BEGIN_NAMESPACE ...@@ -159,9 +159,7 @@ QT_BEGIN_NAMESPACE
void QSize::transpose() Q_DECL_NOTHROW void QSize::transpose() Q_DECL_NOTHROW
{ {
int tmp = wd; qSwap(wd, ht);
wd = ht;
ht = tmp;
} }
/*! /*!
...@@ -592,9 +590,7 @@ QDebug operator<<(QDebug dbg, const QSize &s) ...@@ -592,9 +590,7 @@ QDebug operator<<(QDebug dbg, const QSize &s)
void QSizeF::transpose() Q_DECL_NOTHROW void QSizeF::transpose() Q_DECL_NOTHROW
{ {
qreal tmp = wd; qSwap(wd, ht);
wd = ht;
ht = tmp;
} }
/*! /*!
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment