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>2018-01-19 14:11:51 +0300
committerTatiana Yan <tatiana.kondakova@gmail.com>2018-01-19 16:10:31 +0300
commita0ff36bf4869eaad9872c77c7d043649a1a87578 (patch)
treef010ec4fa1aa094d9f9b6ef72652daaf66d086fa /indexer/scale_index.hpp
parent945a878c54377d108075ae09376993227b3c315b (diff)
[indexer] Add ability to mmap scales index.
Diffstat (limited to 'indexer/scale_index.hpp')
-rw-r--r--indexer/scale_index.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indexer/scale_index.hpp b/indexer/scale_index.hpp
index a8104ac92e..029dae15c1 100644
--- a/indexer/scale_index.hpp
+++ b/indexer/scale_index.hpp
@@ -32,10 +32,12 @@ public:
typedef ReaderT ReaderType;
ScaleIndex() = default;
+
ScaleIndex(ReaderT const & reader, IndexFactory const & factory)
{
Attach(reader, factory);
}
+
~ScaleIndex()
{
Clear();