summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-01-22 11:06:44 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-22 13:04:24 +0000
commitffafd5e4a0c02fdcf47674866a9428a2158c0ae4 (patch)
tree3361989d4901c50fd32ea2347fae1a6375bbed5f /sot
parent63fd4c97118a943c84ba5a666cf8c9cc54b511c7 (diff)
cppcheck: useInitializationList
don't initialise the unique_ptr m_pFat twice Change-Id: Ifa4d9b68756c89c76a1be5803e84526dcfa2c1e7 Reviewed-on: https://gerrit.libreoffice.org/33390 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgstrms.cxx16
1 files changed, 9 insertions, 7 deletions
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()