summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarcontrols.cxx6
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 )
{