From ffafd5e4a0c02fdcf47674866a9428a2158c0ae4 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sun, 22 Jan 2017 11:06:44 +0100 Subject: cppcheck: useInitializationList don't initialise the unique_ptr m_pFat twice Change-Id: Ifa4d9b68756c89c76a1be5803e84526dcfa2c1e7 Reviewed-on: https://gerrit.libreoffice.org/33390 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sot/source/sdstor/stgstrms.cxx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'sot') diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx index 3503421c341c..8f6f584d4605 100644 --- a/sot/source/sdstor/stgstrms.cxx +++ b/sot/source/sdstor/stgstrms.cxx @@ -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() -- cgit