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>2015-04-27 16:55:03 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:46:27 +0300
commit3cd1aabf377cbc5de2e74dc3ff196b018a8c6d34 (patch)
tree0907aedc125590ce2b204f23485136b68b7edb2c /indexer/index.cpp
parent6704c8e070ead2ab459b05c2c3b214eafc34b3a8 (diff)
[index] MwmValues are wrapped in shared_ptr's.
Diffstat (limited to 'indexer/index.cpp')
-rw-r--r--indexer/index.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/index.cpp b/indexer/index.cpp
index 38b56ebfb1..378a3e3fc2 100644
--- a/indexer/index.cpp
+++ b/indexer/index.cpp
@@ -47,9 +47,9 @@ bool Index::GetVersion(string const & name, MwmInfo & info) const
return true;
}
-MwmValue * Index::CreateValue(string const & name) const
+shared_ptr<MwmSet::MwmValueBase> Index::CreateValue(string const & name) const
{
- MwmValue * p = new MwmValue(name);
+ shared_ptr<MwmValue> p(new MwmValue(name));
ASSERT(p->GetHeader().IsMWMSuitable(), ());
return p;
}