Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktor <vng@Viktors-MacBook-Pro.local>2016-03-28 23:01:43 +0300
committervng <viktor.govako@gmail.com>2016-03-29 12:26:06 +0300
commit85a97abee636b7de4fd94169517a4ec4b9df33cc (patch)
tree0ffc34261e3cc750de533dd64427c055f7653fd5 /indexer/feature.cpp
parent4f47d19a4bc2804c2df3019ff4ba0a27863ac236 (diff)
Factor out “en” language to the predefined constant.
Diffstat (limited to 'indexer/feature.cpp')
-rw-r--r--indexer/feature.cpp6
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;