From 3014c3575626253e80f7f5d01ad4605dac34010b Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Sun, 10 Jun 2012 18:05:41 +0300 Subject: 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 --- src/gui/text/qfontsubset_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/text/qfontsubset_p.h') 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 getReverseMap() const; - QByteArray glyphName(unsigned int glyph, const QVector reverseMap) const; + QByteArray glyphName(unsigned int glyph, const QVector &reverseMap) const; static QByteArray glyphName(unsigned short unicode, bool symbol); -- cgit v1.2.3