From 702496391b2b9ef53f83752b34feb3c33d7fb4e9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 6 Sep 2016 12:31:00 +0200 Subject: loplugin:constantparam in vcl..xmlscript Change-Id: Icf66c08071b154259c9e551342d30331caf2b15a Reviewed-on: https://gerrit.libreoffice.org/28685 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- xmlscript/source/xmldlg_imexp/imp_share.hxx | 4 ++-- xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'xmlscript/source/xmldlg_imexp') diff --git a/xmlscript/source/xmldlg_imexp/imp_share.hxx b/xmlscript/source/xmldlg_imexp/imp_share.hxx index 743b5ee239f6..9802f87b195c 100644 --- a/xmlscript/source/xmldlg_imexp/imp_share.hxx +++ b/xmlscript/source/xmldlg_imexp/imp_share.hxx @@ -529,8 +529,8 @@ public: inline WindowElement( OUString const & rLocalName, css::uno::Reference< css::xml::input::XAttributes > const & xAttributes, - ElementBase * pParent, DialogImport * pImport ) - : ControlElement( rLocalName, xAttributes, pParent, pImport ) + DialogImport * pImport ) + : ControlElement( rLocalName, xAttributes, nullptr, pImport ) {} }; diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx index 3b53820b090c..8bec171b0478 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx @@ -1747,7 +1747,7 @@ Reference< xml::input::XElement > DialogImport::startRootElement( // window else if ( rLocalName == "window" ) { - return new WindowElement( rLocalName, xAttributes, nullptr, this ); + return new WindowElement( rLocalName, xAttributes, this ); } else { -- cgit