summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2015-03-20 10:12:29 (GMT)
committerAndy Shaw <andy.shaw@digia.com>2015-03-20 10:24:17 (GMT)
commitc0b2c4e88edab204391089ac71ad0cec0a1444c6 (patch)
tree053cc6675f16a13288d9c24055b109b897803384
parent40f0b716586e227bab66f0bdef9c81b6449a3f86 (diff)
downloadQt-c0b2c4e88edab204391089ac71ad0cec0a1444c6.zip
Qt-c0b2c4e88edab204391089ac71ad0cec0a1444c6.tar.gz
Qt-c0b2c4e88edab204391089ac71ad0cec0a1444c6.tar.bz2
Use qSwap instead of std::swap so platforms without STL still compile
Change-Id: Ieee4c1e795b13b3c2fd26d05c5655b4b596bd061 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-rw-r--r--src/gui/image/qimage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qimage.cpp b/src/gui/image/qimage.cpp
index 965a1ba..5f383e9 100644
--- a/src/gui/image/qimage.cpp
+++ b/src/gui/image/qimage.cpp
@@ -4781,7 +4781,7 @@ template<class T> inline void do_mirror_data(QImageData *dst, QImageData *src,
T *srcPtr = (T *) (src->data + srcY * src->bytes_per_line);
T *dstPtr = (T *) (dst->data + dstY * dst->bytes_per_line);
for (int srcX = 0, dstX = dstX0; srcX < srcXEnd; ++srcX, dstX += dstXIncr)
- std::swap(srcPtr[srcX], dstPtr[dstX]);
+ qSwap(srcPtr[srcX], dstPtr[dstX]);
}
} else {
for (int srcY = 0, dstY = dstY0; srcY < h; ++srcY, dstY += dstYIncr) {