diff options
author | vng <viktor.govako@gmail.com> | 2016-01-20 18:59:16 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:14:20 +0300 |
commit | c843969f7e1d387464403fc7e468bef5c816fe48 (patch) | |
tree | c4c581a596fe5127b0dd532f37a83af6fa78cb9f /indexer/feature.cpp | |
parent | 38f6a6e10e9bb799ebb725ce4592ec8c969f56c7 (diff) |
Rename ForEachNameRef -> ForEachName with rvalue reference functor passing.
Diffstat (limited to 'indexer/feature.cpp')
-rw-r--r-- | indexer/feature.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/indexer/feature.cpp b/indexer/feature.cpp index e49dd875a3..bf18707282 100644 --- a/indexer/feature.cpp +++ b/indexer/feature.cpp @@ -103,11 +103,11 @@ editor::XMLFeature FeatureType::ToXML() const if (GetFeatureType() == feature::GEOM_POINT) feature.SetCenter(GetCenter()); - ForEachNameRef([&feature](uint8_t const & lang, string const & name) - { - feature.SetName(lang, name); - return true; - }); + ForEachName([&feature](uint8_t const & lang, string const & name) + { + feature.SetName(lang, name); + return true; + }); string const house = GetHouseNumber(); if (!house.empty()) @@ -275,7 +275,7 @@ void FeatureType::SetNames(StringUtf8Multilang const & newNames) { m_params.name.Clear(); // Validate passed string to clean up empty names (if any). - newNames.ForEachRef([this](int8_t langCode, string const & name) -> bool + newNames.ForEach([this](int8_t langCode, string const & name) -> bool { if (!name.empty()) m_params.name.AddString(langCode, name); @@ -427,7 +427,7 @@ void FeatureType::GetPreferredNames(string & defaultName, string & intName) cons ParseCommon(); BestMatchedLangNames matcher; - ForEachNameRef(matcher); + ForEachName(matcher); defaultName.swap(matcher.m_defaultName); @@ -453,7 +453,7 @@ void FeatureType::GetReadableName(string & name) const ParseCommon(); BestMatchedLangNames matcher; - ForEachNameRef(matcher); + ForEachName(matcher); if (!matcher.m_nativeName.empty()) name.swap(matcher.m_nativeName); |