From 61e94390a3b86024b76c3418fe8c5e517c5c5123 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 22 Jun 2018 11:56:37 +0200 Subject: new loplugin simplifyconstruct no need to init smart pointers with nullptr, they all have default constructors that do this already Change-Id: Ief20c060daa0def8c1aa82f1cf8dc4bc696761e9 Reviewed-on: https://gerrit.libreoffice.org/59818 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sdext/source/pdfimport/inc/genericelements.hxx | 3 +-- sdext/source/pdfimport/pdfparse/pdfentries.cxx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'sdext') diff --git a/sdext/source/pdfimport/inc/genericelements.hxx b/sdext/source/pdfimport/inc/genericelements.hxx index fb3fcf93703d..59defa1588e7 100644 --- a/sdext/source/pdfimport/inc/genericelements.hxx +++ b/sdext/source/pdfimport/inc/genericelements.hxx @@ -244,8 +244,7 @@ namespace pdfi protected: PageElement( Element* pParent, sal_Int32 nPageNr ) : Element( pParent ), PageNumber( nPageNr ), Hyperlinks(), - TopMargin( 0.0 ), BottomMargin( 0.0 ), LeftMargin( 0.0 ), RightMargin( 0.0 ), - HeaderElement( nullptr ), FooterElement( nullptr ) + TopMargin( 0.0 ), BottomMargin( 0.0 ), LeftMargin( 0.0 ), RightMargin( 0.0 ) {} private: // helper method for resolveHyperlinks diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx index a0c15c9d14ef..5fed8e18d102 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -95,8 +95,7 @@ using namespace pdfparse; EmitContext::EmitContext( const PDFContainer* pTop ) : m_bDeflate( false ), - m_bDecrypt( false ), - m_pImplData( nullptr ) + m_bDecrypt( false ) { if( pTop ) m_pImplData.reset( new EmitImplData( pTop ) ); -- cgit