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 /coding/mmap_reader.hpp
parent78fb143a7901288395d5cc70b0aa4e0b9ff707fc (diff)
Platform::GetReader returns unique_ptr. Fix leaks.
Diffstat (limited to 'coding/mmap_reader.hpp')
-rw-r--r--coding/mmap_reader.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/coding/mmap_reader.hpp b/coding/mmap_reader.hpp
index 7e1a9d059b..8b41f66ec1 100644
--- a/coding/mmap_reader.hpp
+++ b/coding/mmap_reader.hpp
@@ -19,9 +19,9 @@ class MmapReader : public ModelReader
public:
explicit MmapReader(string const & fileName);
- virtual uint64_t Size() const;
- virtual void Read(uint64_t pos, void * p, size_t size) const;
- virtual MmapReader * CreateSubReader(uint64_t pos, uint64_t size) const;
+ uint64_t Size() const override;
+ void Read(uint64_t pos, void * p, size_t size) const override;
+ unique_ptr<Reader> CreateSubReader(uint64_t pos, uint64_t size) const override;
/// Direct file/memory access
uint8_t * Data() const;