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-07-06 16:41:27 +0300
committerSergey Magidovich <mgsergio@mapswithme.com>2016-07-07 12:49:22 +0300
commit354462bee81f267d807d8d4e2b9d9c4df5d43c4e (patch)
treead804b41191e69f83da5488dd96f544367eb03e2 /indexer/osm_editor.hpp
parentabad74b76c735eca873ee1384de40607993aec32 (diff)
Check return value of m_getOriginalFeatureFn().
Diffstat (limited to 'indexer/osm_editor.hpp')
-rw-r--r--indexer/osm_editor.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indexer/osm_editor.hpp b/indexer/osm_editor.hpp
index 8a36f25788..109b089600 100644
--- a/indexer/osm_editor.hpp
+++ b/indexer/osm_editor.hpp
@@ -114,7 +114,8 @@ public:
NothingWasChanged,
SavedSuccessfully,
NoFreeSpaceError,
- NoUnderlyingMapError
+ NoUnderlyingMapError,
+ SavingError
};
/// Editor checks internally if any feature params were actually edited.
SaveResult SaveEditedFeature(EditableMapObject const & emo);
@@ -172,6 +173,7 @@ private:
/// @returns false if fails.
bool Save(string const & fullFilePath) const;
void RemoveFeatureFromStorageIfExists(MwmSet::MwmId const & mwmId, uint32_t index);
+ void RemoveFeatureFromStorageIfExists(FeatureID const & fid);
/// Notify framework that something has changed and should be redisplayed.
void Invalidate();