From 9e139ce0993f11115639426982873becdd87cc10 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 16 Aug 2014 12:52:06 +0200 Subject: QTextureGlyphCache: add some qMove() Change-Id: I1965f4de0f1bf9efdb15d07142f882897e163cc5 Reviewed-by: Konstantin Ritt Reviewed-by: Gunnar Sletta --- src/gui/painting/qtextureglyphcache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gui/painting/qtextureglyphcache.cpp b/src/gui/painting/qtextureglyphcache.cpp index 360c3a3027..44e14f656d 100644 --- a/src/gui/painting/qtextureglyphcache.cpp +++ b/src/gui/painting/qtextureglyphcache.cpp @@ -68,7 +68,7 @@ int QTextureGlyphCache::calculateSubPixelPositionCount(glyph_t glyph) const if (path.isEmpty()) break; - images[numImages++] = img; + images[numImages++] = qMove(img); } else { bool found = false; for (int j = 0; j < numImages; ++j) { @@ -78,7 +78,7 @@ int QTextureGlyphCache::calculateSubPixelPositionCount(glyph_t glyph) const } } if (!found) - images[numImages++] = img; + images[numImages++] = qMove(img); } } -- cgit v1.2.3