diff options
Diffstat (limited to 'coding/file_container.cpp')
-rw-r--r-- | coding/file_container.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/coding/file_container.cpp b/coding/file_container.cpp index fab8710331..4a1045687a 100644 --- a/coding/file_container.cpp +++ b/coding/file_container.cpp @@ -64,18 +64,18 @@ void FilesContainerBase::ReadInfo(ReaderT & reader) FilesContainerR::FilesContainerR(string const & filePath, uint32_t logPageSize, uint32_t logPageCount) - : m_source(new FileReader(filePath, logPageSize, logPageCount)) + : m_source(make_unique<FileReader>(filePath, logPageSize, logPageCount)) { ReadInfo(m_source); } -FilesContainerR::FilesContainerR(ReaderT const & file) +FilesContainerR::FilesContainerR(TReader const & file) : m_source(file) { ReadInfo(m_source); } -FilesContainerR::ReaderT FilesContainerR::GetReader(Tag const & tag) const +FilesContainerR::TReader FilesContainerR::GetReader(Tag const & tag) const { Info const * p = GetInfo(tag); if (!p) @@ -413,7 +413,7 @@ FileWriter FilesContainerW::GetWriter(Tag const & tag) void FilesContainerW::Write(string const & fPath, Tag const & tag) { - Write(new FileReader(fPath), tag); + Write(ModelReaderPtr(make_unique<FileReader>(fPath)), tag); } void FilesContainerW::Write(ModelReaderPtr reader, Tag const & tag) |