diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-13 15:00:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-17 10:52:39 +0200 |
commit | 05db125c57ea3c8f04a304561209c32cc5c45a67 (patch) | |
tree | b145bc06aefb426e9b92fe9b4defea02a5ee4abe /uui | |
parent | be9b83445ec19346a4d5c830c955ed573469591a (diff) |
loplugin:staticconstfield improvements
Change-Id: Ia0a19736dfd4500bb17b04c072710f8ee8744031
Reviewed-on: https://gerrit.libreoffice.org/60526
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'uui')
-rw-r--r-- | uui/source/secmacrowarnings.cxx | 3 | ||||
-rw-r--r-- | uui/source/secmacrowarnings.hxx | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/uui/source/secmacrowarnings.cxx b/uui/source/secmacrowarnings.cxx index 3030ab92520a..c8953b5977e6 100644 --- a/uui/source/secmacrowarnings.cxx +++ b/uui/source/secmacrowarnings.cxx @@ -69,7 +69,6 @@ MacroWarning::MacroWarning(weld::Window* pParent, bool _bWithSignatures) , mxEnableBtn(m_xBuilder->weld_button("ok")) , mxDisableBtn(m_xBuilder->weld_button("cancel")) , mpInfos ( nullptr ) - , mbSignedMode ( true ) , mbShowSignatures ( _bWithSignatures ) , mnActSecLevel ( 0 ) { @@ -105,7 +104,7 @@ IMPL_LINK_NOARG(MacroWarning, ViewSignsBtnHdl, weld::Button&, void) IMPL_LINK_NOARG(MacroWarning, EnableBtnHdl, weld::Button&, void) { - if (mbSignedMode && mxAlwaysTrustCB->get_active()) + if (mxAlwaysTrustCB->get_active()) { // insert path into trusted path list uno::Reference< security::XDocumentDigitalSignatures > xD( security::DocumentDigitalSignatures::createWithVersion(comphelper::getProcessComponentContext(), maODFVersion)); diff --git a/uui/source/secmacrowarnings.hxx b/uui/source/secmacrowarnings.hxx index fbaf55751f5e..b5e3c9a450b9 100644 --- a/uui/source/secmacrowarnings.hxx +++ b/uui/source/secmacrowarnings.hxx @@ -46,7 +46,6 @@ private: OUString maODFVersion; const css::uno::Sequence< css::security::DocumentSignatureInformation >* mpInfos; - const bool mbSignedMode; // mode of dialog (signed / unsigned macros) const bool mbShowSignatures; sal_Int32 mnActSecLevel; |