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:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2017-03-28 19:27:59 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2017-03-30 14:54:36 +0300
commit965d71afc32981da4205b7b3189771acb0764e3a (patch)
treef9b8d103ecf405eae10b4d037c54ef7a31bee24c /indexer/feature.cpp
parent8c3d4f78c7df9ae3fcb0fa912f9ea18803dd7e40 (diff)
Transliteration allowability parameter added.
Diffstat (limited to 'indexer/feature.cpp')
-rw-r--r--indexer/feature.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indexer/feature.cpp b/indexer/feature.cpp
index 0c1b23d506..fe5cb49aa1 100644
--- a/indexer/feature.cpp
+++ b/indexer/feature.cpp
@@ -491,7 +491,7 @@ FeatureType::geom_stat_t FeatureType::GetTrianglesSize(int scale) const
return geom_stat_t(sz, m_triangles.size());
}
-void FeatureType::GetPreferredNames(string & primary, string & secondary) const
+void FeatureType::GetPreferredNames(bool allowTranslit, string & primary, string & secondary) const
{
if (!HasName())
return;
@@ -503,11 +503,11 @@ void FeatureType::GetPreferredNames(string & primary, string & secondary) const
ParseCommon();
auto const deviceLang = StringUtf8Multilang::GetLangIndex(languages::GetCurrentNorm());
- ::GetPreferredNames(mwmInfo->GetRegionData(), GetNames(), deviceLang, true /* allowTranslit */,
+ ::GetPreferredNames(mwmInfo->GetRegionData(), GetNames(), deviceLang, allowTranslit,
primary, secondary);
}
-void FeatureType::GetReadableName(string & name) const
+void FeatureType::GetReadableName(bool allowTranslit, string & name) const
{
if (!HasName())
return;
@@ -519,7 +519,7 @@ void FeatureType::GetReadableName(string & name) const
ParseCommon();
auto const deviceLang = StringUtf8Multilang::GetLangIndex(languages::GetCurrentNorm());
- ::GetReadableName(mwmInfo->GetRegionData(), GetNames(), deviceLang, true /* allowTranslit */, name);
+ ::GetReadableName(mwmInfo->GetRegionData(), GetNames(), deviceLang, allowTranslit, name);
}
string FeatureType::GetHouseNumber() const