QSize: use qSwap in transpose()

... because that's what it does.

Change-Id: Ia3d4eefe2e675e4b2c2a4f01b8339ba69a40a5e9
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Anton Kudryavtsev 2016-01-11 15:55:31 +03:00
parent f59b12c629
commit 29ca117ad6

View File

@ -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);
}
/*!