summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/tools/qsize.cpp8
1 files changed, 2 insertions, 6 deletions
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);
}
/*!