diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-07-06 16:41:27 +0300 |
---|---|---|
committer | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-07-07 12:49:22 +0300 |
commit | 354462bee81f267d807d8d4e2b9d9c4df5d43c4e (patch) | |
tree | ad804b41191e69f83da5488dd96f544367eb03e2 /indexer/osm_editor.hpp | |
parent | abad74b76c735eca873ee1384de40607993aec32 (diff) |
Check return value of m_getOriginalFeatureFn().
Diffstat (limited to 'indexer/osm_editor.hpp')
-rw-r--r-- | indexer/osm_editor.hpp | 4 |
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(); |