Exchange new with make_shared().

This commit is contained in:
Vladimir Byko-Ianko 2020-10-16 10:55:56 +03:00 committed by mpimenov
parent 7967522d1c
commit 684a61ba24

View file

@ -87,7 +87,7 @@ FileReader::FileReader(string const & fileName, uint32_t logPageSize, uint32_t l
: ModelReader(fileName)
, m_logPageSize(logPageSize)
, m_logPageCount(logPageCount)
, m_fileData(new FileReaderData(fileName, logPageSize, logPageCount))
, m_fileData(make_shared<FileReaderData>(fileName, logPageSize, logPageCount))
, m_offset(0)
, m_size(m_fileData->Size())
{