summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-22 11:56:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-13 11:15:33 +0200
commit61e94390a3b86024b76c3418fe8c5e517c5c5123 (patch)
treecf701ad41c465540c90c6548716180bdd44e278f /sdext
parentdfb18a0557d5a897f443fd1f1d617365f6ae134a (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/inc/genericelements.hxx3
-rw-r--r--sdext/source/pdfimport/pdfparse/pdfentries.cxx3
2 files changed, 2 insertions, 4 deletions
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 ) );