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>2015-12-30 13:01:04 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:04:19 +0300
commit07dd52fb77e88966ce51a14dc38cddfb9cd077bf (patch)
tree0ee6db2368ae72f63b56375905fe8251fbc0658a /indexer/index.hpp
parent7d7e810d5aef61242e9dfa27dbd527f457894a46 (diff)
enum FeatureStatus -> enum class FeatureStatus
Diffstat (limited to 'indexer/index.hpp')
-rw-r--r--indexer/index.hpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/indexer/index.hpp b/indexer/index.hpp
index 5bbb35766d..92ce9476a7 100644
--- a/indexer/index.hpp
+++ b/indexer/index.hpp
@@ -137,13 +137,14 @@ private:
FeatureType feature;
switch (m_editor.GetFeatureStatus(mwmID, index))
{
- case osm::Editor::EDeleted: return;
- case osm::Editor::EModified:
- VERIFY(m_editor.GetEditedFeature(mwmID, index, feature), ());
- m_f(feature);
- return;
- case osm::Editor::ECreated: CHECK(false, ("Created features index should be generated."));
- case osm::Editor::EUntouched: break;
+ case osm::Editor::FeatureStatus::Deleted: return;
+ case osm::Editor::FeatureStatus::Modified:
+ VERIFY(m_editor.GetEditedFeature(mwmID, index, feature), ());
+ m_f(feature);
+ return;
+ case osm::Editor::FeatureStatus::Created:
+ CHECK(false, ("Created features index should be generated."));
+ case osm::Editor::FeatureStatus::Untouched: break;
}
if (checkUnique(index))
{
@@ -197,7 +198,8 @@ private:
{
index.ForEachInIntervalAndScale([&] (uint32_t index)
{
- if (osm::Editor::EDeleted != m_editor.GetFeatureStatus(mwmID, index) && checkUnique(index))
+ if (osm::Editor::FeatureStatus::Deleted != m_editor.GetFeatureStatus(mwmID, index) &&
+ checkUnique(index))
m_f(FeatureID(mwmID, index));
}, i.first, i.second, scale);
}
@@ -246,9 +248,9 @@ public:
do
{
osm::Editor::FeatureStatus const fts = editor.GetFeatureStatus(id, fidIter->m_index);
- ASSERT_NOT_EQUAL(osm::Editor::EDeleted, fts, ("Deleted feature was cached. Please review your code."));
+ ASSERT_NOT_EQUAL(osm::Editor::FeatureStatus::Deleted, fts, ("Deleted feature was cached. Please review your code."));
FeatureType featureType;
- if (fts == osm::Editor::EModified)
+ if (fts == osm::Editor::FeatureStatus::Modified)
{
VERIFY(editor.GetEditedFeature(id, fidIter->m_index, featureType), ());
}
@@ -280,6 +282,7 @@ public:
bool IsWorld() const;
void GetFeatureByIndex(uint32_t index, FeatureType & ft) const;
inline FeaturesVector const & GetFeaturesVector() const { return m_vector; }
+ void GetFeatureByIndexIgnoringEditor(uint32_t index, FeatureType & ft) const;
private:
MwmHandle m_handle;