diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-04-28 16:28:01 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-05-12 10:19:15 +0300 |
commit | 6e58ba0abc25d4737036c3efe8ac80ee74ea5c4b (patch) | |
tree | 1c56b5d7cf55594720b027cbb8cdd58b19ff5559 /indexer/osm_editor.hpp | |
parent | 8ac15533c0d5a518e27b9f2f652ef2cefc7bc1ac (diff) |
Make editor a field of Framework.
Diffstat (limited to 'indexer/osm_editor.hpp')
-rw-r--r-- | indexer/osm_editor.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indexer/osm_editor.hpp b/indexer/osm_editor.hpp index 62c71ddf07..c1738912e2 100644 --- a/indexer/osm_editor.hpp +++ b/indexer/osm_editor.hpp @@ -24,8 +24,6 @@ namespace osm { class Editor final { - Editor(); - public: using TFeatureTypeFn = function<void(FeatureType &)>; // Mimics Framework::TFeatureTypeFn. @@ -52,7 +50,10 @@ public: Created }; + Editor(); + static Editor & Instance(); + static void SetInstance(Editor * editor); void SetMwmIdByNameAndVersionFn(TMwmIdByMapNameFn const & fn) { m_mwmIdByMapNameFn = fn; } void SetInvalidateFn(TInvalidateFn const & fn) { m_invalidateFn = fn; } @@ -202,6 +203,8 @@ private: /// Notes to be sent to osm. shared_ptr<editor::Notes> m_notes; + + static Editor * s_instance; }; // class Editor string DebugPrint(Editor::FeatureStatus fs); |