diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2012-06-10 18:05:41 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-14 05:21:54 +0200 |
commit | 3014c3575626253e80f7f5d01ad4605dac34010b (patch) | |
tree | 0d334b1a9450f80ae0caf0f9b384cf9f0dd41989 /src/gui/text/qfontsubset_p.h | |
parent | 0137f092af12110c427f05358f7b207ea95ea341 (diff) |
AGLFN: optimize glyph name lookup and reverse map creation
Use binary search in glyph name lookup, drop the linear search sentinel (0xFFFF);
Pass the reverse map by ref, initialize with memset.
Change-Id: I56de64bf2352af0615787e4cc0e13c922c640822
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/gui/text/qfontsubset_p.h')
-rw-r--r-- | src/gui/text/qfontsubset_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontsubset_p.h b/src/gui/text/qfontsubset_p.h index 5605c2a4a2..a120a18d3a 100644 --- a/src/gui/text/qfontsubset_p.h +++ b/src/gui/text/qfontsubset_p.h @@ -72,7 +72,7 @@ public: QByteArray widthArray() const; QByteArray createToUnicodeMap() const; QVector<int> getReverseMap() const; - QByteArray glyphName(unsigned int glyph, const QVector<int> reverseMap) const; + QByteArray glyphName(unsigned int glyph, const QVector<int> &reverseMap) const; static QByteArray glyphName(unsigned short unicode, bool symbol); |