From f0593478571009139cd12bac11a9b38e51c42f96 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 24 Mar 2017 08:31:25 +0200 Subject: loplugin:unusedfields improve the plugin to find fields which are only assigned to in the constructor Change-Id: I95b5be238ebba83d950ca15093abdd1849740359 Reviewed-on: https://gerrit.libreoffice.org/35613 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlsecurity/source/component/documentdigitalsignatures.cxx | 2 +- xmlsecurity/source/dialogs/macrosecurity.cxx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'xmlsecurity/source') diff --git a/xmlsecurity/source/component/documentdigitalsignatures.cxx b/xmlsecurity/source/component/documentdigitalsignatures.cxx index 34bce199d2fb..95f249af12b6 100644 --- a/xmlsecurity/source/component/documentdigitalsignatures.cxx +++ b/xmlsecurity/source/component/documentdigitalsignatures.cxx @@ -400,7 +400,7 @@ void DocumentDigitalSignatures::manageTrustedSources( ) if (aSignatureManager.init()) xSecEnv = aSignatureManager.getSecurityEnvironment(); - ScopedVclPtrInstance< MacroSecurity > aDlg( nullptr, mxCtx, xSecEnv ); + ScopedVclPtrInstance< MacroSecurity > aDlg( nullptr, xSecEnv ); aDlg->Execute(); } diff --git a/xmlsecurity/source/dialogs/macrosecurity.cxx b/xmlsecurity/source/dialogs/macrosecurity.cxx index ac06fabfaac3..63a112361280 100644 --- a/xmlsecurity/source/dialogs/macrosecurity.cxx +++ b/xmlsecurity/source/dialogs/macrosecurity.cxx @@ -56,10 +56,8 @@ IMPL_LINK_NOARG(MacroSecurity, OkBtnHdl, Button*, void) } MacroSecurity::MacroSecurity( vcl::Window* _pParent, - const css::uno::Reference< css::uno::XComponentContext> &_rxCtx, const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment) : TabDialog(_pParent, "MacroSecurityDialog", "xmlsec/ui/macrosecuritydialog.ui") - , mxCtx(_rxCtx) , mxSecurityEnvironment(_rxSecurityEnvironment) { get(m_pTabCtrl, "tabcontrol"); -- cgit v1.2.3