diff options
author | Viktor <vng@Viktors-MacBook-Pro.local> | 2016-03-28 23:01:43 +0300 |
---|---|---|
committer | vng <viktor.govako@gmail.com> | 2016-03-29 12:26:06 +0300 |
commit | 85a97abee636b7de4fd94169517a4ec4b9df33cc (patch) | |
tree | 0ffc34261e3cc750de533dd64427c055f7653fd5 /indexer/feature.cpp | |
parent | 4f47d19a4bc2804c2df3019ff4ba0a27863ac236 (diff) |
Factor out “en” language to the predefined constant.
Diffstat (limited to 'indexer/feature.cpp')
-rw-r--r-- | indexer/feature.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indexer/feature.cpp b/indexer/feature.cpp index 41b518b9c6..9d17b25c67 100644 --- a/indexer/feature.cpp +++ b/indexer/feature.cpp @@ -499,10 +499,10 @@ struct BestMatchedLangNames bool operator()(int8_t code, string const & name) { - static int8_t const defaultCode = StringUtf8Multilang::GetLangIndex("default"); + int8_t const defaultCode = StringUtf8Multilang::kDefaultCode; static int8_t const nativeCode = StringUtf8Multilang::GetLangIndex(languages::GetCurrentNorm()); - static int8_t const intCode = StringUtf8Multilang::GetLangIndex("int_name"); - static int8_t const englishCode = StringUtf8Multilang::GetLangIndex("en"); + int8_t const intCode = StringUtf8Multilang::kInternationalCode; + int8_t const englishCode = StringUtf8Multilang::kEnglishCode; if (code == defaultCode) m_defaultName = name; |