diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-03-01 13:48:18 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:51:12 +0300 |
commit | 77059ed4fcf2b5dd32c7c8eb15010ff2c3677e9f (patch) | |
tree | 12eec6654ac188e525661c0c65c2740a2b8d5d71 /coding | |
parent | 57a9e0cd90cc98e3bb7afa4207b0de2aebc07b14 (diff) |
Add editor config.
Diffstat (limited to 'coding')
-rw-r--r-- | coding/reader.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coding/reader.hpp b/coding/reader.hpp index f97217eaae..bfc03cc797 100644 --- a/coding/reader.hpp +++ b/coding/reader.hpp @@ -20,12 +20,10 @@ public: DECLARE_EXCEPTION(SizeException, Exception); DECLARE_EXCEPTION(ReadException, Exception); - using TReaderPtr = unique_ptr<Reader>; - virtual ~Reader() {} virtual uint64_t Size() const = 0; virtual void Read(uint64_t pos, void * p, size_t size) const = 0; - virtual TReaderPtr CreateSubReader(uint64_t pos, uint64_t size) const = 0; + virtual unique_ptr<Reader> CreateSubReader(uint64_t pos, uint64_t size) const = 0; void ReadAsString(string & s) const; |