From 7b334ef200efa7266f3b1bf0cd76f6659e276d01 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Mon, 21 Dec 2015 14:31:31 +0300 Subject: [PATCH] Typedef for convenience. --- indexer/osm_editor.cpp | 4 ++-- indexer/osm_editor.hpp | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/indexer/osm_editor.cpp b/indexer/osm_editor.cpp index 293775c485..38ffff9545 100644 --- a/indexer/osm_editor.cpp +++ b/indexer/osm_editor.cpp @@ -119,7 +119,7 @@ void Editor::EditFeature(FeatureType & editedFeature) } void Editor::ForEachFeatureInMwmRectAndScale(MwmSet::MwmId const & id, - function const & f, + TFeatureIDFunctor const & f, m2::RectD const & rect, uint32_t /*scale*/) { @@ -138,7 +138,7 @@ void Editor::ForEachFeatureInMwmRectAndScale(MwmSet::MwmId const & id, } void Editor::ForEachFeatureInMwmRectAndScale(MwmSet::MwmId const & id, - function const & f, + TFeatureTypeFunctor const & f, m2::RectD const & rect, uint32_t /*scale*/) { diff --git a/indexer/osm_editor.hpp b/indexer/osm_editor.hpp index 21b55ea8a0..606b201ea4 100644 --- a/indexer/osm_editor.hpp +++ b/indexer/osm_editor.hpp @@ -41,12 +41,14 @@ public: // TODO(AlexZ): Synchronize Save call/make it on a separate thread. void Save(string const & fullFilePath) const; + using TFeatureIDFunctor = function; + using TFeatureTypeFunctor = function; void ForEachFeatureInMwmRectAndScale(MwmSet::MwmId const & id, - function const & f, + TFeatureIDFunctor const & f, m2::RectD const & rect, uint32_t scale); void ForEachFeatureInMwmRectAndScale(MwmSet::MwmId const & id, - function const & f, + TFeatureTypeFunctor const & f, m2::RectD const & rect, uint32_t scale);