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.hpp
parent78fb143a7901288395d5cc70b0aa4e0b9ff707fc (diff)
Platform::GetReader returns unique_ptr. Fix leaks.
Diffstat (limited to 'indexer/categories_holder.hpp')
-rw-r--r--indexer/categories_holder.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/indexer/categories_holder.hpp b/indexer/categories_holder.hpp
index 95e38c7750..97a56733f9 100644
--- a/indexer/categories_holder.hpp
+++ b/indexer/categories_holder.hpp
@@ -1,11 +1,12 @@
#pragma once
#include "base/string_utils.hpp"
-#include "std/vector.hpp"
-#include "std/map.hpp"
-#include "std/string.hpp"
#include "std/iostream.hpp"
+#include "std/map.hpp"
#include "std/shared_ptr.hpp"
+#include "std/string.hpp"
+#include "std/unique_ptr.hpp"
+#include "std/vector.hpp"
class Reader;
@@ -44,7 +45,7 @@ private:
Name2CatContT m_name2type;
public:
- explicit CategoriesHolder(Reader * reader);
+ explicit CategoriesHolder(unique_ptr<Reader> && reader);
void LoadFromStream(istream & s);
template <class ToDo>