summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-09 13:36:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-09 19:40:02 +0200
commitfada813d5db2be370638d182e9f3b0dcd89fa081 (patch)
tree887340ded163c8e9f44a36806aced543d219647a
parentf6de30f44311e6125e65e990af1bb87ef2e4b979 (diff)
loplugin:simplifyconstruct in l10ntools..package
Change-Id: I8dba8ef1e7455af1e55bbd6086b49c0606bf4927 Reviewed-on: https://gerrit.libreoffice.org/60212 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--l10ntools/source/cfgmerge.cxx3
-rw-r--r--l10ntools/source/xrmmerge.cxx1
-rw-r--r--lotuswordpro/inc/lwpfont.hxx1
-rw-r--r--lotuswordpro/source/filter/lwpcharborderoverride.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpdlvlist.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpdrawobj.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpfont.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpframelayout.cxx3
-rw-r--r--lotuswordpro/source/filter/lwpfrib.cxx1
-rw-r--r--lotuswordpro/source/filter/lwpfribbreaks.cxx2
-rw-r--r--lotuswordpro/source/filter/lwplaypiece.cxx1
-rw-r--r--lotuswordpro/source/filter/lwpobj.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpoverride.cxx4
-rw-r--r--lotuswordpro/source/filter/lwppara.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfcell.cxx1
-rw-r--r--lotuswordpro/source/filter/xfilter/xfcellstyle.cxx1
-rw-r--r--lotuswordpro/source/filter/xfilter/xfconfigmanager.cxx4
-rw-r--r--lotuswordpro/source/filter/xfilter/xfparastyle.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfstylemanager.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xftablestyle.cxx1
-rw-r--r--oox/source/drawingml/chart/datasourcecontext.cxx3
-rw-r--r--oox/source/drawingml/textbodypropertiescontext.cxx1
-rw-r--r--oox/source/drawingml/texteffectscontext.cxx1
-rw-r--r--oox/source/drawingml/textparagraph.cxx2
-rw-r--r--oox/source/ole/olehelper.cxx2
-rw-r--r--oox/source/ppt/pptshapegroupcontext.cxx1
-rw-r--r--package/source/xstor/ocompinstream.cxx2
-rw-r--r--package/source/xstor/ohierarchyholder.hxx6
-rw-r--r--package/source/xstor/switchpersistencestream.cxx2
-rw-r--r--package/source/zipapi/Inflater.cxx3
-rw-r--r--package/source/zippackage/zipfileaccess.cxx1
31 files changed, 13 insertions, 50 deletions
diff --git a/l10ntools/source/cfgmerge.cxx b/l10ntools/source/cfgmerge.cxx
index ed124c5c428a..872d2c29ded0 100644
--- a/l10ntools/source/cfgmerge.cxx
+++ b/l10ntools/source/cfgmerge.cxx
@@ -396,8 +396,7 @@ void CfgExport::WorkOnText(
CfgMerge::CfgMerge(
const OString &rMergeSource, const OString &rOutputFile,
const OString &rFilename, const OString &rLanguage )
- : pMergeDataFile( nullptr ),
- sFilename( rFilename ),
+ : sFilename( rFilename ),
bEnglish( false )
{
pOutputStream.open(
diff --git a/l10ntools/source/xrmmerge.cxx b/l10ntools/source/xrmmerge.cxx
index 6c747ad98654..f866a460b06f 100644
--- a/l10ntools/source/xrmmerge.cxx
+++ b/l10ntools/source/xrmmerge.cxx
@@ -370,7 +370,6 @@ XRMResMerge::XRMResMerge(
const OString &rMergeSource, const OString &rOutputFile,
const OString &rFilename )
: XRMResParser(),
- pMergeDataFile( nullptr ),
sFilename( rFilename )
{
if (!rMergeSource.isEmpty() && sLanguage.equalsIgnoreAsciiCase("ALL"))
diff --git a/lotuswordpro/inc/lwpfont.hxx b/lotuswordpro/inc/lwpfont.hxx
index bcaec1233876..866775485234 100644
--- a/lotuswordpro/inc/lwpfont.hxx
+++ b/lotuswordpro/inc/lwpfont.hxx
@@ -246,7 +246,6 @@ class LwpFontAttrManager
public:
LwpFontAttrManager()
: m_nCount(0)
- , m_pFontAttrs(nullptr)
{}
~LwpFontAttrManager();
public:
diff --git a/lotuswordpro/source/filter/lwpcharborderoverride.cxx b/lotuswordpro/source/filter/lwpcharborderoverride.cxx
index fdd0736d9ea9..b50abc5365cf 100644
--- a/lotuswordpro/source/filter/lwpcharborderoverride.cxx
+++ b/lotuswordpro/source/filter/lwpcharborderoverride.cxx
@@ -75,8 +75,6 @@ LwpCharacterBorderOverride::LwpCharacterBorderOverride()
LwpCharacterBorderOverride::LwpCharacterBorderOverride(LwpCharacterBorderOverride const& rOther)
: LwpOverride(rOther)
- , m_pBorderStuff(nullptr)
- , m_pMargins(nullptr)
, m_nAboveWidth(rOther.m_nAboveWidth)
, m_nBelowWidth(rOther.m_nBelowWidth)
{
diff --git a/lotuswordpro/source/filter/lwpdlvlist.cxx b/lotuswordpro/source/filter/lwpdlvlist.cxx
index e4f56e6044f2..77431cdd03d0 100644
--- a/lotuswordpro/source/filter/lwpdlvlist.cxx
+++ b/lotuswordpro/source/filter/lwpdlvlist.cxx
@@ -119,7 +119,7 @@ void LwpDLNFVList::ReadName(LwpObjectStream* pObjStrm)
**/
LwpDLNFPVList::LwpDLNFPVList(LwpObjectHeader const &objHdr, LwpSvStream* pStrm)
: LwpDLNFVList(objHdr, pStrm),
- m_bHasProperties(true),m_pPropList(nullptr)
+ m_bHasProperties(true)
{}
/**
* @descr Read name of LwpDLNFVList from object stream
diff --git a/lotuswordpro/source/filter/lwpdrawobj.cxx b/lotuswordpro/source/filter/lwpdrawobj.cxx
index f2c226a7d767..45637de0c32c 100644
--- a/lotuswordpro/source/filter/lwpdrawobj.cxx
+++ b/lotuswordpro/source/filter/lwpdrawobj.cxx
@@ -478,7 +478,7 @@ XFFrame* LwpDrawLine::CreateStandardDrawObj(const OUString& rStyleName)
* @param pStream The memory stream which contains the lwp-sdw draw objects
*/
LwpDrawPolyLine::LwpDrawPolyLine(SvStream * pStream, DrawingOffsetAndScale* pTransData)
-: LwpDrawObj(pStream, pTransData), m_pVector(nullptr)
+: LwpDrawObj(pStream, pTransData)
{
}
LwpDrawPolyLine::~LwpDrawPolyLine()
diff --git a/lotuswordpro/source/filter/lwpfont.cxx b/lotuswordpro/source/filter/lwpfont.cxx
index 329e08790b16..92c8a853c28c 100644
--- a/lotuswordpro/source/filter/lwpfont.cxx
+++ b/lotuswordpro/source/filter/lwpfont.cxx
@@ -245,7 +245,6 @@ void LwpFontTableEntry::RegisterFontDecl()
LwpFontTable::LwpFontTable()
: m_nCount(0)
- , m_pFontEntries(nullptr)
{}
void LwpFontTable::Read(LwpObjectStream *pStrm)
@@ -358,7 +357,6 @@ bool LwpFontNameEntry::IsBackgroundColorOverridden()
LwpFontNameManager::LwpFontNameManager()
: m_nCount(0)
- , m_pFontNames(nullptr)
{}
LwpFontNameManager::~LwpFontNameManager()
diff --git a/lotuswordpro/source/filter/lwpframelayout.cxx b/lotuswordpro/source/filter/lwpframelayout.cxx
index 0d4119824041..5aa92128f6d8 100644
--- a/lotuswordpro/source/filter/lwpframelayout.cxx
+++ b/lotuswordpro/source/filter/lwpframelayout.cxx
@@ -760,7 +760,7 @@ void LwpFrameLink::Read(LwpObjectStream* pStrm)
}
LwpFrameLayout::LwpFrameLayout(LwpObjectHeader const &objHdr, LwpSvStream* pStrm)
- : LwpPlacableLayout(objHdr, pStrm), m_pFrame(nullptr), m_bGettingMaxWidth(false)
+ : LwpPlacableLayout(objHdr, pStrm), m_bGettingMaxWidth(false)
{
}
@@ -1021,7 +1021,6 @@ void LwpFrameLayout::ApplyGraphicSize(XFFrame * pXFFrame)
LwpGroupLayout::LwpGroupLayout(LwpObjectHeader const &objHdr, LwpSvStream* pStrm)
: LwpPlacableLayout(objHdr, pStrm)
- , m_pFrame(nullptr)
{
}
diff --git a/lotuswordpro/source/filter/lwpfrib.cxx b/lotuswordpro/source/filter/lwpfrib.cxx
index 1e3bc5e77833..04cd857a3de1 100644
--- a/lotuswordpro/source/filter/lwpfrib.cxx
+++ b/lotuswordpro/source/filter/lwpfrib.cxx
@@ -91,7 +91,6 @@ LwpFrib::LwpFrib(LwpPara* pPara)
, m_pPara(pPara)
, m_pNext(nullptr)
, m_nFribType(0)
- , m_pModifiers(nullptr)
, m_ModFlag(false)
, m_nRevisionType(0)
, m_bRevisionFlag(false)
diff --git a/lotuswordpro/source/filter/lwpfribbreaks.cxx b/lotuswordpro/source/filter/lwpfribbreaks.cxx
index 6f4e9b4f6beb..9d024ccff383 100644
--- a/lotuswordpro/source/filter/lwpfribbreaks.cxx
+++ b/lotuswordpro/source/filter/lwpfribbreaks.cxx
@@ -100,7 +100,7 @@ void LwpFribColumnBreak::RegisterBreakStyle(LwpPara * pPara)
}
LwpFribPageBreak::LwpFribPageBreak( LwpPara* pPara )
- : LwpFrib(pPara), m_bLastFrib(false), m_pMasterPage(nullptr)
+ : LwpFrib(pPara), m_bLastFrib(false)
{
}
diff --git a/lotuswordpro/source/filter/lwplaypiece.cxx b/lotuswordpro/source/filter/lwplaypiece.cxx
index 31b05f894c40..443b6c1de8ab 100644
--- a/lotuswordpro/source/filter/lwplaypiece.cxx
+++ b/lotuswordpro/source/filter/lwplaypiece.cxx
@@ -264,7 +264,6 @@ void LwpColumnInfo:: Read(LwpObjectStream *pStrm)
LwpLayoutColumns::LwpLayoutColumns(LwpObjectHeader const & objHdr, LwpSvStream* pStrm)
: LwpVirtualPiece(objHdr, pStrm)
, m_nNumCols(0)
- , m_pColumns(nullptr)
{}
LwpLayoutColumns::~LwpLayoutColumns()
diff --git a/lotuswordpro/source/filter/lwpobj.cxx b/lotuswordpro/source/filter/lwpobj.cxx
index f7395cb0611e..05de5684bdba 100644
--- a/lotuswordpro/source/filter/lwpobj.cxx
+++ b/lotuswordpro/source/filter/lwpobj.cxx
@@ -60,7 +60,7 @@
* @descr construct lwpobject from stream
*/
LwpObject::LwpObject(LwpObjectHeader objHdr, LwpSvStream* pStrm)
- : m_ObjHdr(objHdr), m_pObjStrm(nullptr), m_pFoundry(nullptr)
+ : m_ObjHdr(objHdr), m_pFoundry(nullptr)
, m_pStrm(pStrm), m_bRegisteringStyle(false), m_bParsingStyle(false)
, m_bConvertingContent(false)
{
diff --git a/lotuswordpro/source/filter/lwpoverride.cxx b/lotuswordpro/source/filter/lwpoverride.cxx
index fff586d6f4f9..dcf94e0c75f7 100644
--- a/lotuswordpro/source/filter/lwpoverride.cxx
+++ b/lotuswordpro/source/filter/lwpoverride.cxx
@@ -363,10 +363,6 @@ LwpSpacingOverride::~LwpSpacingOverride()
LwpSpacingOverride::LwpSpacingOverride(LwpSpacingOverride const& rOther)
: LwpOverride(rOther)
- , m_pSpacing(nullptr)
- , m_pAboveLineSpacing(nullptr)
- , m_pParaSpacingAbove(nullptr)
- , m_pParaSpacingBelow(nullptr)
{
m_pSpacing.reset( ::clone(rOther.m_pSpacing.get()) );
m_pAboveLineSpacing.reset( ::clone(rOther.m_pAboveLineSpacing.get()) );
diff --git a/lotuswordpro/source/filter/lwppara.cxx b/lotuswordpro/source/filter/lwppara.cxx
index 6a635d439709..aca3fb934ac3 100644
--- a/lotuswordpro/source/filter/lwppara.cxx
+++ b/lotuswordpro/source/filter/lwppara.cxx
@@ -103,8 +103,6 @@ LwpPara::LwpPara(LwpObjectHeader const & objHdr, LwpSvStream* pStrm)
, m_nOrdinal(0)
, m_nFlags(0)
, m_nLevel(0)
- , m_pBreaks(nullptr)
- , m_pIndentOverride(nullptr)
, m_FontID(0)
, m_AllText("")
, m_bHasBullet(false)
diff --git a/lotuswordpro/source/filter/xfilter/xfcell.cxx b/lotuswordpro/source/filter/xfilter/xfcell.cxx
index 077298c38d27..289e34435094 100644
--- a/lotuswordpro/source/filter/xfilter/xfcell.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfcell.cxx
@@ -67,7 +67,6 @@
XFCell::XFCell()
: m_pOwnerRow(nullptr)
- , m_pSubTable(nullptr)
, m_nCol(0)
, m_nColSpaned(1)
, m_nRepeated(0)
diff --git a/lotuswordpro/source/filter/xfilter/xfcellstyle.cxx b/lotuswordpro/source/filter/xfilter/xfcellstyle.cxx
index c89578be07b1..787bc2cc4496 100644
--- a/lotuswordpro/source/filter/xfilter/xfcellstyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfcellstyle.cxx
@@ -66,7 +66,6 @@ XFCellStyle::XFCellStyle()
: m_eHoriAlign(enumXFAlignNone)
, m_eVertAlign(enumXFAlignNone)
, m_fTextIndent(0)
- , m_pBorders(nullptr)
, m_bWrapText(false)
{}
diff --git a/lotuswordpro/source/filter/xfilter/xfconfigmanager.cxx b/lotuswordpro/source/filter/xfilter/xfconfigmanager.cxx
index 8b0e5bd4440b..343ec4275464 100644
--- a/lotuswordpro/source/filter/xfilter/xfconfigmanager.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfconfigmanager.cxx
@@ -60,10 +60,6 @@
#include <xfilter/xfconfigmanager.hxx>
XFConfigManager::XFConfigManager()
- : m_pLineNumberConfig(nullptr)
- , m_pFootnoteConfig(nullptr)
- , m_pEndnoteConfig(nullptr)
-
{
}
diff --git a/lotuswordpro/source/filter/xfilter/xfparastyle.cxx b/lotuswordpro/source/filter/xfilter/xfparastyle.cxx
index bbb686b986cc..26dd14099921 100644
--- a/lotuswordpro/source/filter/xfilter/xfparastyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfparastyle.cxx
@@ -71,8 +71,6 @@ XFParaStyle::XFParaStyle()
, m_bJustSingleWord(false)
, m_bKeepWithNext(false)
, m_fTextIndent(0)
- , m_pBorders(nullptr)
- , m_pBGImage(nullptr)
, m_nPageNumber(0)
, m_bNumberLines(true)
, m_nLineNumberRestart(0)
diff --git a/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx b/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx
index 84dcb725e969..cf772652b3ba 100644
--- a/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfstylemanager.cxx
@@ -69,7 +69,7 @@ XFStyleManager::XFStyleManager() : s_aStdArrowStyles( "arrow" ), s_aTextStyles(
s_aParaStyles( "P" ),s_aListStyles( "L" ),s_aSectionStyles( "Sect" ),
s_aPageMasters( "PM" ),s_aMasterpages( "MP" ),s_aDateStyles( "N" ),
s_aGraphicsStyles( "fr" ),s_aTableStyles( "table" ),s_aTableCellStyles( "cell" ),
- s_aTableRowStyles( "row" ),s_aTableColStyles( "col" ),s_pOutlineStyle(nullptr)
+ s_aTableRowStyles( "row" ),s_aTableColStyles( "col" )
{
}
diff --git a/lotuswordpro/source/filter/xfilter/xftablestyle.cxx b/lotuswordpro/source/filter/xfilter/xftablestyle.cxx
index cc6cdbcfab9a..cf1229f59ff5 100644
--- a/lotuswordpro/source/filter/xfilter/xftablestyle.cxx
+++ b/lotuswordpro/source/filter/xfilter/xftablestyle.cxx
@@ -62,7 +62,6 @@
XFTableStyle::XFTableStyle()
: m_fWidth(2)
- , m_pBGImage(nullptr)
, m_eAlign(enumXFAlignStart)
{}
diff --git a/oox/source/drawingml/chart/datasourcecontext.cxx b/oox/source/drawingml/chart/datasourcecontext.cxx
index 527ee336f172..e50723b378d0 100644
--- a/oox/source/drawingml/chart/datasourcecontext.cxx
+++ b/oox/source/drawingml/chart/datasourcecontext.cxx
@@ -40,8 +40,7 @@ using namespace ::com::sun::star;
DoubleSequenceContext::DoubleSequenceContext( ContextHandler2Helper& rParent, DataSequenceModel& rModel ) :
DataSequenceContextBase( rParent, rModel ),
- mnPtIndex( -1 ),
- mpNumberFormatter( nullptr )
+ mnPtIndex( -1 )
{
}
diff --git a/oox/source/drawingml/textbodypropertiescontext.cxx b/oox/source/drawingml/textbodypropertiescontext.cxx
index 9f1549c87126..02432c8771d4 100644
--- a/oox/source/drawingml/textbodypropertiescontext.cxx
+++ b/oox/source/drawingml/textbodypropertiescontext.cxx
@@ -61,7 +61,6 @@ TextBodyPropertiesContext::TextBodyPropertiesContext( ContextHandler2Helper cons
const AttributeList& rAttribs, TextBodyProperties& rTextBodyProp )
: ContextHandler2( rParent )
, mrTextBodyProp( rTextBodyProp )
-, mpShapePtr( nullptr )
{
// ST_TextWrappingType
sal_Int32 nWrappingType = rAttribs.getToken( XML_wrap, XML_square );
diff --git a/oox/source/drawingml/texteffectscontext.cxx b/oox/source/drawingml/texteffectscontext.cxx
index 6d113b854c4e..9046ba5fadf9 100644
--- a/oox/source/drawingml/texteffectscontext.cxx
+++ b/oox/source/drawingml/texteffectscontext.cxx
@@ -110,7 +110,6 @@ TextEffectsContext::TextEffectsContext(
std::vector<PropertyValue>& rTextEffectsProperties)
: ContextHandler2(rParent)
, mrTextEffectsProperties(rTextEffectsProperties)
- , mpGrabBagStack(nullptr)
, mnCurrentElement(aElementToken)
{
}
diff --git a/oox/source/drawingml/textparagraph.cxx b/oox/source/drawingml/textparagraph.cxx
index a4348d8ce13f..5c8143dbd673 100644
--- a/oox/source/drawingml/textparagraph.cxx
+++ b/oox/source/drawingml/textparagraph.cxx
@@ -69,7 +69,7 @@ TextParagraphPropertiesPtr TextParagraph::getParagraphStyle(
const TextParagraphPropertiesVector& rListStyle = rTextListStyle.getListStyle();
if (nLevel >= static_cast< sal_Int16 >(rListStyle.size()))
nLevel = 0;
- TextParagraphPropertiesPtr pTextParagraphStyle = nullptr;
+ TextParagraphPropertiesPtr pTextParagraphStyle;
if (rListStyle.size())
pTextParagraphStyle = rListStyle[nLevel];
diff --git a/oox/source/ole/olehelper.cxx b/oox/source/ole/olehelper.cxx
index 135086113245..640787cdada6 100644
--- a/oox/source/ole/olehelper.cxx
+++ b/oox/source/ole/olehelper.cxx
@@ -326,7 +326,7 @@ Reference< css::frame::XFrame > lcl_getFrame( const Reference< css::frame::XMod
return xFrame;
}
-OleFormCtrlExportHelper::OleFormCtrlExportHelper( const Reference< XComponentContext >& rxCtx, const Reference< XModel >& rxDocModel, const Reference< XControlModel >& xCntrlModel ) : mpControl(nullptr), mpModel( nullptr ), maGrfHelper( rxCtx, lcl_getFrame( rxDocModel ), StorageRef() ), mxDocModel( rxDocModel ), mxControlModel( xCntrlModel )
+OleFormCtrlExportHelper::OleFormCtrlExportHelper( const Reference< XComponentContext >& rxCtx, const Reference< XModel >& rxDocModel, const Reference< XControlModel >& xCntrlModel ) : mpModel( nullptr ), maGrfHelper( rxCtx, lcl_getFrame( rxDocModel ), StorageRef() ), mxDocModel( rxDocModel ), mxControlModel( xCntrlModel )
{
// try to get the guid
Reference< css::beans::XPropertySet > xProps( xCntrlModel, UNO_QUERY );
diff --git a/oox/source/ppt/pptshapegroupcontext.cxx b/oox/source/ppt/pptshapegroupcontext.cxx
index 1d639f3316b3..de8db9b237cd 100644
--- a/oox/source/ppt/pptshapegroupcontext.cxx
+++ b/oox/source/ppt/pptshapegroupcontext.cxx
@@ -59,7 +59,6 @@ PPTShapeGroupContext::PPTShapeGroupContext(
: ShapeGroupContext( rParent, pMasterShapePtr, pGroupShapePtr )
, mpSlidePersistPtr( rSlidePersistPtr )
, meShapeLocation( eShapeLocation )
-, pGraphicShape( nullptr )
{
}
diff --git a/package/source/xstor/ocompinstream.cxx b/package/source/xstor/ocompinstream.cxx
index efa4122e2cd1..af87464d2bf3 100644
--- a/package/source/xstor/ocompinstream.cxx
+++ b/package/source/xstor/ocompinstream.cxx
@@ -37,7 +37,6 @@ OInputCompStream::OInputCompStream( OWriteStream_Impl& aImpl,
: m_pImpl( &aImpl )
, m_xMutex( m_pImpl->m_xMutex )
, m_xStream( xStream )
-, m_pInterfaceContainer( nullptr )
, m_aProperties( aProps )
, m_bDisposed( false )
, m_nStorageType( nStorageType )
@@ -55,7 +54,6 @@ OInputCompStream::OInputCompStream( uno::Reference < io::XInputStream > const &
: m_pImpl( nullptr )
, m_xMutex( new comphelper::RefCountedMutex )
, m_xStream( xStream )
-, m_pInterfaceContainer( nullptr )
, m_aProperties( aProps )
, m_bDisposed( false )
, m_nStorageType( nStorageType )
diff --git a/package/source/xstor/ohierarchyholder.hxx b/package/source/xstor/ohierarchyholder.hxx
index 317a4d9b329c..c50a00358b1b 100644
--- a/package/source/xstor/ohierarchyholder.hxx
+++ b/package/source/xstor/ohierarchyholder.hxx
@@ -55,13 +55,11 @@ struct OHierarchyElement_Impl : public cppu::WeakImplHelper< css::embed::XTransa
public:
explicit OHierarchyElement_Impl( const css::uno::Reference< css::embed::XStorage >& xStorage )
- : m_rParent( nullptr )
- , m_xOwnStorage( xStorage )
+ : m_xOwnStorage( xStorage )
{}
explicit OHierarchyElement_Impl( const css::uno::WeakReference< css::embed::XStorage >& xWeakStorage )
- : m_rParent( nullptr )
- , m_xWeakOwnStorage( xWeakStorage )
+ : m_xWeakOwnStorage( xWeakStorage )
{}
void Commit();
diff --git a/package/source/xstor/switchpersistencestream.cxx b/package/source/xstor/switchpersistencestream.cxx
index b85be26f7eb6..7eac83cbf708 100644
--- a/package/source/xstor/switchpersistencestream.cxx
+++ b/package/source/xstor/switchpersistencestream.cxx
@@ -64,7 +64,6 @@ SwitchablePersistenceStream::SwitchablePersistenceStream(
const uno::Reference< uno::XComponentContext >& xContext,
const uno::Reference< io::XStream >& xStream )
: m_xContext( xContext )
-, m_pStreamData( nullptr )
{
SwitchPersistenceTo( xStream );
}
@@ -73,7 +72,6 @@ SwitchablePersistenceStream::SwitchablePersistenceStream(
const uno::Reference< uno::XComponentContext >& xContext,
const uno::Reference< io::XInputStream >& xInputStream )
: m_xContext( xContext )
-, m_pStreamData( nullptr )
{
SwitchPersistenceTo( xInputStream );
}
diff --git a/package/source/zipapi/Inflater.cxx b/package/source/zipapi/Inflater.cxx
index 24a3b23e3156..9abea5bfe977 100644
--- a/package/source/zipapi/Inflater.cxx
+++ b/package/source/zipapi/Inflater.cxx
@@ -31,8 +31,7 @@ Inflater::Inflater(bool bNoWrap)
bNeedDict(false),
nOffset(0),
nLength(0),
- nLastInflateError(0),
- pStream(nullptr)
+ nLastInflateError(0)
{
pStream.reset(new z_stream);
/* memset to 0 to set zalloc/opaque etc */
diff --git a/package/source/zippackage/zipfileaccess.cxx b/package/source/zippackage/zipfileaccess.cxx
index f585d53e9297..70b8d3f7a96f 100644
--- a/package/source/zippackage/zipfileaccess.cxx
+++ b/package/source/zippackage/zipfileaccess.cxx
@@ -48,7 +48,6 @@ using namespace ::com::sun::star;
OZipFileAccess::OZipFileAccess( const uno::Reference< uno::XComponentContext >& rxContext )
: m_aMutexHolder( new comphelper::RefCountedMutex )
, m_xContext( rxContext )
-, m_pListenersContainer( nullptr )
, m_bDisposed( false )
, m_bOwnContent( false )
{