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/categories_holder.cpp
parent78fb143a7901288395d5cc70b0aa4e0b9ff707fc (diff)
Platform::GetReader returns unique_ptr. Fix leaks.
Diffstat (limited to 'indexer/categories_holder.cpp')
-rw-r--r--indexer/categories_holder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/categories_holder.cpp b/indexer/categories_holder.cpp
index 7c84017b3d..9266b01fb9 100644
--- a/indexer/categories_holder.cpp
+++ b/indexer/categories_holder.cpp
@@ -22,9 +22,9 @@ enum State
} // unnamed namespace
-CategoriesHolder::CategoriesHolder(Reader * reader)
+CategoriesHolder::CategoriesHolder(unique_ptr<Reader> && reader)
{
- ReaderStreamBuf buffer(reader);
+ ReaderStreamBuf buffer(move(reader));
istream s(&buffer);
LoadFromStream(s);
}