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:
parent
f59b12c629
commit
29ca117ad6
@ -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);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user