Kaydet (Commit) ffafd5e4 authored tarafından Jochen Nitschke's avatar Jochen Nitschke Kaydeden (comit) Noel Grandin

cppcheck: useInitializationList

don't initialise the unique_ptr m_pFat twice

Change-Id: Ifa4d9b68756c89c76a1be5803e84526dcfa2c1e7
Reviewed-on: https://gerrit.libreoffice.org/33390Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 63fd4c97
......@@ -318,14 +318,16 @@ bool StgFAT::FreePages( sal_Int32 nStart, bool bAll )
// and accessing the data on a physical basis. It uses the built-in
// FAT class for the page allocations.
StgStrm::StgStrm( StgIo& r ) : m_rIo( r )
StgStrm::StgStrm( StgIo& r )
: m_rIo(r),
m_pEntry(nullptr),
m_nStart(STG_EOF),
m_nSize(0),
m_nPos(0),
m_nPage(STG_EOF),
m_nOffset(0),
m_nPageSize(m_rIo.GetPhysPageSize())
{
m_pFat = nullptr;
m_nStart = m_nPage = STG_EOF;
m_nOffset = 0;
m_pEntry = nullptr;
m_nPos = m_nSize = 0;
m_nPageSize = m_rIo.GetPhysPageSize();
}
StgStrm::~StgStrm()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment