diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-24 15:32:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-24 15:32:12 +0100 |
commit | b13838e1f783029782203cac67bc75a0cc7a5db4 (patch) | |
tree | 0238a6e8ecf35863eda92caa2c02d6eaf42b519c /vcl/source/glyphs | |
parent | 972b189812509c9778b0fe12ef690dbb301b55d2 (diff) |
micro optimization, remove startup global
Diffstat (limited to 'vcl/source/glyphs')
-rw-r--r-- | vcl/source/glyphs/graphite_features.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/glyphs/graphite_features.cxx b/vcl/source/glyphs/graphite_features.cxx index fa5be6e68fd9..23325f963b37 100644 --- a/vcl/source/glyphs/graphite_features.cxx +++ b/vcl/source/glyphs/graphite_features.cxx @@ -48,7 +48,6 @@ using namespace grutils; const char GrFeatureParser::FEAT_PREFIX = ':'; const char GrFeatureParser::FEAT_SEPARATOR = '&'; const char GrFeatureParser::FEAT_ID_VALUE_SEPARATOR = '='; -const std::string GrFeatureParser::ISO_LANG("lang"); GrFeatureParser::GrFeatureParser(gr::Font & font, const std::string lang) : mnNumSettings(0), mbErrors(false) @@ -74,7 +73,7 @@ GrFeatureParser::GrFeatureParser(gr::Font & font, const std::string features, co break; } // check for a lang=xxx specification - if (features.compare(pos, nEquals - pos, ISO_LANG) == 0) + if (features.compare(pos, nEquals - pos, "lang") == 0) { pos = nEquals + 1; nFeatEnd = features.find(FEAT_SEPARATOR, pos); |