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:
authorVladiMihaylenko <vxmihaylenko@gmail.com>2016-04-27 19:44:11 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-05-12 10:19:14 +0300
commit8ac15533c0d5a518e27b9f2f652ef2cefc7bc1ac (patch)
treeb6da9da8ba00bca79638316ab681b56b3e7fa657 /indexer/new_feature_categories.cpp
parentbd2bd03ff6006e14b6efd169393e255cba335748 (diff)
[ios] Implemented new category search.
Diffstat (limited to 'indexer/new_feature_categories.cpp')
-rw-r--r--indexer/new_feature_categories.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/indexer/new_feature_categories.cpp b/indexer/new_feature_categories.cpp
index 42cc6a2b7c..cded82d8f2 100644
--- a/indexer/new_feature_categories.cpp
+++ b/indexer/new_feature_categories.cpp
@@ -60,10 +60,8 @@ void NewFeatureCategories::AddLanguage(string lang)
m_categoriesByLang[lang] = names;
}
-NewFeatureCategories::TNames NewFeatureCategories::Search(string const & query,
- string const & queryLang) const
+NewFeatureCategories::TNames NewFeatureCategories::Search(string const & query, string lang) const
{
- string lang = queryLang;
auto langCode = CategoriesHolder::MapLocaleToInteger(lang);
if (langCode == CategoriesHolder::kUnsupportedLocaleCode)
{
@@ -83,7 +81,7 @@ NewFeatureCategories::TNames NewFeatureCategories::Search(string const & query,
my::SortUnique(result);
alohalytics::TStringMap const stats = {
- {"query", query}, {"queryLang", queryLang}, {"lang", lang}};
+ {"query", query}, {"lang", lang}};
alohalytics::LogEvent("searchNewFeatureCategory", stats);
return result;