diff options
author | Andreas Kling <andreas.kling@nokia.com> | 2010-03-04 08:59:24 (GMT) |
---|---|---|
committer | Andreas Kling <andreas.kling@nokia.com> | 2010-03-04 08:59:24 (GMT) |
commit | a63dc3b837fbabafcd8ccdc6c30e304f69b278da (patch) | |
tree | 34670026c46748c05cf65ff66df4cc347de46358 /src/gui | |
parent | 8d6b5483e34d27f1ee45af9d9fadb87525c9f915 (diff) | |
download | Qt-a63dc3b837fbabafcd8ccdc6c30e304f69b278da.zip Qt-a63dc3b837fbabafcd8ccdc6c30e304f69b278da.tar.gz Qt-a63dc3b837fbabafcd8ccdc6c30e304f69b278da.tar.bz2 |
Avoid QString reallocation for smallcaps fonts in Itemizer::generate()
Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/text/qtextengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp index 2291138..b826588 100644 --- a/src/gui/text/qtextengine.cpp +++ b/src/gui/text/qtextengine.cpp @@ -81,7 +81,7 @@ public: void generate(int start, int length, QFont::Capitalization caps) { if ((int)caps == (int)QFont::SmallCaps) - generateScriptItemsSmallCaps(m_string.utf16(), start, length); + generateScriptItemsSmallCaps(reinterpret_cast<const ushort *>(m_string.unicode()), start, length); else if(caps == QFont::Capitalize) generateScriptItemsCapitalize(start, length); else if(caps != QFont::MixedCase) { |