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:
authorYuri Gorshenin <y@maps.me>2016-08-22 13:47:56 +0300
committerYuri Gorshenin <y@maps.me>2016-08-26 16:21:13 +0300
commitafc3d20264e8fcd99dc3cd465ce1770d0b3246d0 (patch)
tree67d2bcd855340555d742181e467cc987bd70a332 /indexer/osm_editor.hpp
parent336c137d59c12d0de9fd292bcf3db9b453670567 (diff)
[search] Added matching of edited features by type.
Diffstat (limited to 'indexer/osm_editor.hpp')
-rw-r--r--indexer/osm_editor.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/indexer/osm_editor.hpp b/indexer/osm_editor.hpp
index 282f9b98ef..dcdf39255a 100644
--- a/indexer/osm_editor.hpp
+++ b/indexer/osm_editor.hpp
@@ -10,6 +10,7 @@
#include "editor/editor_config.hpp"
#include "editor/editor_notes.hpp"
+#include "editor/editor_storage.hpp"
#include "editor/xml_feature.hpp"
#include "base/timer.hpp"
@@ -23,11 +24,6 @@
namespace editor
{
-class StorageBase;
-} // namespace editor
-
-namespace editor
-{
namespace testing
{
class EditorTest;
@@ -74,9 +70,15 @@ public:
};
static Editor & Instance();
+
// Reference to the index will be used in editor functors, it should not be temporary object.
void SetIndex(Index const & index);
+ inline void SetStorageForTesting(unique_ptr<editor::StorageBase> storage)
+ {
+ m_storage = move(storage);
+ }
+
void SetInvalidateFn(TInvalidateFn const & fn) { m_invalidateFn = fn; }
void LoadMapEdits();