From c0b2c4e88edab204391089ac71ad0cec0a1444c6 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Fri, 20 Mar 2015 11:12:29 +0100 Subject: Use qSwap instead of std::swap so platforms without STL still compile Change-Id: Ieee4c1e795b13b3c2fd26d05c5655b4b596bd061 Reviewed-by: Laszlo Agocs --- src/gui/image/qimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/image/qimage.cpp') diff --git a/src/gui/image/qimage.cpp b/src/gui/image/qimage.cpp index 965a1ba2f1..5f383e97f9 100644 --- a/src/gui/image/qimage.cpp +++ b/src/gui/image/qimage.cpp @@ -4781,7 +4781,7 @@ template 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) { -- cgit v1.2.1