summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-08-16 12:52:06 +0200
committerMarc Mutz <marc.mutz@kdab.com>2015-06-22 22:20:47 +0000
commit9e139ce0993f11115639426982873becdd87cc10 (patch)
treeae7ae23be629713a547c73a69ced4d003ea5c530 /src/gui/painting
parent4dc597d96c26445a892cfc8f10d0f1da3d8decf1 (diff)
QTextureGlyphCache: add some qMove()
Change-Id: I1965f4de0f1bf9efdb15d07142f882897e163cc5 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qtextureglyphcache.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}
}