summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@nokia.com>2010-01-27 13:17:59 (GMT)
committerAlessandro Portale <alessandro.portale@nokia.com>2010-01-27 13:28:20 (GMT)
commit41ff82566a360a478766ee16e72958f5441947fc (patch)
tree4189439bdd8746e998651034cb8f6594f98a8786 /src/gui/text
parentc513782f7cbad45b7c91e069ae81552a4bbb2a5f (diff)
downloadQt-41ff82566a360a478766ee16e72958f5441947fc.zip
Qt-41ff82566a360a478766ee16e72958f5441947fc.tar.gz
Qt-41ff82566a360a478766ee16e72958f5441947fc.tar.bz2
Removing unneeded code from QFontEngine::getGlyphPositions()
Two QVarLengthArray resizes and one local int variable less. Reviewed-by: Simon Hausmann modified: src/gui/text/qfontengine.cpp
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qfontengine.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/text/qfontengine.cpp b/src/gui/text/qfontengine.cpp
index 9343cb7..c000457 100644
--- a/src/gui/text/qfontengine.cpp
+++ b/src/gui/text/qfontengine.cpp
@@ -357,9 +357,6 @@ void QFontEngine::getGlyphPositions(const QGlyphLayout &glyphs, const QTransform
++i;
}
} else {
- positions.resize(glyphs.numGlyphs);
- glyphs_out.resize(glyphs.numGlyphs);
- int i = 0;
while (i < glyphs.numGlyphs) {
if (!glyphs.attributes[i].dontPrint) {
QFixed gpos_x = xpos + glyphs.offsets[i].x;