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:
authorSergey Magidovich <mgsergio@mapswithme.com>2016-02-28 22:33:38 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:49:24 +0300
commit4a3989ff23d90c112b50f690e7a2c2329aa54389 (patch)
tree6c4476e3d423686acbf55f180c39abb55561b929 /indexer/feature_processor.hpp
parent78fb143a7901288395d5cc70b0aa4e0b9ff707fc (diff)
Platform::GetReader returns unique_ptr. Fix leaks.
Diffstat (limited to 'indexer/feature_processor.hpp')
-rw-r--r--indexer/feature_processor.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indexer/feature_processor.hpp b/indexer/feature_processor.hpp
index 6db645f9b1..e8b7b636d6 100644
--- a/indexer/feature_processor.hpp
+++ b/indexer/feature_processor.hpp
@@ -23,6 +23,6 @@ void ForEachFromDat(ModelReaderPtr reader, ToDo && toDo)
template <class ToDo>
void ForEachFromDat(string const & fPath, ToDo && toDo)
{
- ForEachFromDat(new FileReader(fPath), toDo);
+ ForEachFromDat(make_unique<FileReader>(fPath), toDo);
}
}