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:
authorSergey Magidovich <mgsergio@mapswithme.com>2016-06-03 13:52:14 +0300
committerSergey Magidovich <mgsergio@mapswithme.com>2016-06-03 15:36:21 +0300
commitce64dac110b8d0e1994b2f46f5bbd5e10142fd67 (patch)
tree787640beba8b925a5786227d485804bfc38e0749 /drape_frontend
parent47e1a0e317d6ab28e32f4a295f9b9af7697681b1 (diff)
Code review.
Diffstat (limited to 'drape_frontend')
-rw-r--r--drape_frontend/apply_feature_functors.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/drape_frontend/apply_feature_functors.cpp b/drape_frontend/apply_feature_functors.cpp
index 1c23b108e7..c18d3dd892 100644
--- a/drape_frontend/apply_feature_functors.cpp
+++ b/drape_frontend/apply_feature_functors.cpp
@@ -282,8 +282,9 @@ void ApplyPointFeature::operator()(m2::PointD const & point, bool hasArea)
auto const & editor = osm::Editor::Instance();
m_hasPoint = true;
m_hasArea = hasArea;
- m_createdByEditor = editor.GetFeatureStatus(m_id) == osm::Editor::FeatureStatus::Created;
- m_obsoleteInEditor = editor.GetFeatureStatus(m_id) == osm::Editor::FeatureStatus::Obsolete;
+ auto const featureStatus = editor.GetFeatureStatus(m_id);
+ m_createdByEditor = featureStatus == osm::Editor::FeatureStatus::Created;
+ m_obsoleteInEditor = featureStatus == osm::Editor::FeatureStatus::Obsolete;
m_centerPoint = point;
}