diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-06-18 11:56:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-18 17:10:38 +0200 |
commit | 1f4d7fc8618828222d7f4447daed4c3361edeea6 (patch) | |
tree | f0e24e055d1d1a175cea993027d11ff44dbb64f6 /vbahelper | |
parent | 2297570efbefd6f07f2ccd4666d54491d35c8340 (diff) |
vbahelper: remove unused variable
unused since commit a975624bfeeb08670b90944eda372d6d4755ae34
loplugin:unusedfields in tools..vbahelper
Change-Id: I7643ec97e724c9aedab99993509e3c6132fb7d24
Reviewed-on: https://gerrit.libreoffice.org/38921
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vbahelper')
-rw-r--r-- | vbahelper/source/vbahelper/vbacommandbarcontrols.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx index 1c4261f034f5..0dc0af6406e7 100644 --- a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx +++ b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx @@ -164,7 +164,7 @@ ScVbaCommandBarControls::Item( const uno::Any& aIndex, const uno::Any& /*aIndex* } uno::Reference< XCommandBarControl > SAL_CALL -ScVbaCommandBarControls::Add( const uno::Any& Type, const uno::Any& Id, const uno::Any& Parameter, const uno::Any& Before, const uno::Any& Temporary ) +ScVbaCommandBarControls::Add( const uno::Any& Type, const uno::Any& Id, const uno::Any& Parameter, const uno::Any& Before, SAL_UNUSED_PARAMETER const uno::Any& ) { // Parameter is not supported // the following name needs to be individually created; @@ -172,7 +172,6 @@ ScVbaCommandBarControls::Add( const uno::Any& Type, const uno::Any& Id, const un OUString sCommandUrl( CUSTOM_MENU_STR + sLabel); sal_Int32 nType = office::MsoControlType::msoControlButton; sal_Int32 nPosition = 0; - bool bTemporary = true; if( Type.hasValue() ) { @@ -193,9 +192,6 @@ ScVbaCommandBarControls::Add( const uno::Any& Type, const uno::Any& Id, const un else nPosition = m_xIndexAccess->getCount(); - if( Temporary.hasValue() ) - Temporary >>= bTemporary; - uno::Any aSubMenu; if( nType == office::MsoControlType::msoControlPopup ) { |