From 9870f02b310567c1d50c8e11a49afea5fdc549a0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 25 Jul 2016 14:04:19 +0200 Subject: loplugin:countusersofdefaultparams in tools..xmlsecurity find methods with default params with only zero or one call site Change-Id: Ie5b30f60e9fe00ba1acf0dfc79b005ded46f05a0 Reviewed-on: https://gerrit.libreoffice.org/27512 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vbahelper/source/msforms/vbacontrols.cxx | 2 +- vbahelper/source/vbahelper/vbacommandbarhelper.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'vbahelper/source') diff --git a/vbahelper/source/msforms/vbacontrols.cxx b/vbahelper/source/msforms/vbacontrols.cxx index 87241b5fef0d..fe62c1b16d44 100644 --- a/vbahelper/source/msforms/vbacontrols.cxx +++ b/vbahelper/source/msforms/vbacontrols.cxx @@ -50,7 +50,7 @@ class ControlArrayWrapper : public ::cppu::WeakImplHelper< container::XNameAcces ControlIndexMap mIndices; private: - void SetArrayElementTo( const uno::Reference< awt::XControl >& xCtrl, sal_Int32 nIndex = -1 ) + void SetArrayElementTo( const uno::Reference< awt::XControl >& xCtrl, sal_Int32 nIndex ) { // initialize the element with specified index to the control if ( xCtrl.is() ) diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.hxx b/vbahelper/source/vbahelper/vbacommandbarhelper.hxx index 3279fb4c112d..43f2f80e69c8 100644 --- a/vbahelper/source/vbahelper/vbacommandbarhelper.hxx +++ b/vbahelper/source/vbahelper/vbacommandbarhelper.hxx @@ -77,7 +77,7 @@ public: const OUString& getModuleId() const { return maModuleId; } OUString findToolbarByName( const css::uno::Reference< css::container::XNameAccess >& xNameAccess, const OUString& sName ) throw (css::uno::RuntimeException); - static sal_Int32 findControlByName( const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, const OUString& sName, bool bMenu = false ) throw (css::uno::RuntimeException); + static sal_Int32 findControlByName( const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, const OUString& sName, bool bMenu ) throw (css::uno::RuntimeException); static OUString generateCustomURL(); }; -- cgit