diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2019-08-01 18:23:48 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2019-08-07 14:29:18 +0300 |
commit | 474a9e7c999803e6f26672d8d532489b7f1d9f62 (patch) | |
tree | dc665b19fa347b6e51fcf2b3b258e355ec8dc9ae /kml | |
parent | 905268c6edea0742a768ac8640c5698cc30fedad (diff) |
[bookmarks] Sorting by type, distance and type.
Diffstat (limited to 'kml')
-rw-r--r-- | kml/type_utils.cpp | 4 | ||||
-rw-r--r-- | kml/type_utils.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/kml/type_utils.cpp b/kml/type_utils.cpp index be8c0c5b65..dd61e9b3d7 100644 --- a/kml/type_utils.cpp +++ b/kml/type_utils.cpp @@ -62,7 +62,7 @@ std::string GetPreferredBookmarkStr(LocalizableString const & name, feature::Reg return preferredName; } -std::string GetLocalizedBookmarkType(std::vector<uint32_t> const & types) +std::string GetLocalizedFeatureType(std::vector<uint32_t> const & types) { if (types.empty()) return {}; @@ -80,7 +80,7 @@ std::string GetPreferredBookmarkName(BookmarkData const & bmData, std::string co if (name.empty()) name = GetPreferredBookmarkStr(bmData.m_name, languageNorm); if (name.empty()) - name = GetLocalizedBookmarkType(bmData.m_featureTypes); + name = GetLocalizedFeatureType(bmData.m_featureTypes); return name; } } // namespace kml diff --git a/kml/type_utils.hpp b/kml/type_utils.hpp index 0887e0737d..457a4c134d 100644 --- a/kml/type_utils.hpp +++ b/kml/type_utils.hpp @@ -82,7 +82,7 @@ std::string GetPreferredBookmarkName(BookmarkData const & bmData, std::string co std::string GetPreferredBookmarkStr(LocalizableString const & name, std::string const & languageNorm); std::string GetPreferredBookmarkStr(LocalizableString const & name, feature::RegionData const & regionData, std::string const & languageNorm); -std::string GetLocalizedBookmarkType(std::vector<uint32_t> const & types); +std::string GetLocalizedFeatureType(std::vector<uint32_t> const & types); #define DECLARE_COLLECTABLE(IndexType, ...) \ IndexType m_collectionIndex; \ |