summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-24 15:32:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-24 15:32:12 +0100
commitb13838e1f783029782203cac67bc75a0cc7a5db4 (patch)
tree0238a6e8ecf35863eda92caa2c02d6eaf42b519c /vcl
parent972b189812509c9778b0fe12ef690dbb301b55d2 (diff)
micro optimization, remove startup global
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/graphite_features.hxx1
-rw-r--r--vcl/source/glyphs/graphite_features.cxx3
2 files changed, 1 insertions, 3 deletions
diff --git a/vcl/inc/vcl/graphite_features.hxx b/vcl/inc/vcl/graphite_features.hxx
index 2eec223b96f2..a817fa190f6e 100644
--- a/vcl/inc/vcl/graphite_features.hxx
+++ b/vcl/inc/vcl/graphite_features.hxx
@@ -46,7 +46,6 @@ namespace grutils
static const char FEAT_PREFIX;
static const char FEAT_SEPARATOR;
static const char FEAT_ID_VALUE_SEPARATOR;
- static const std::string ISO_LANG;
GrFeatureParser(gr::Font & font, const std::string features, const std::string lang);
GrFeatureParser(gr::Font & font, const std::string lang);
GrFeatureParser(const GrFeatureParser & copy);
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);