vbahelper/source/vbahelper/vbacommandbarcontrols.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
New commits: commit 1f4d7fc8618828222d7f4447daed4c3361edeea6 Author: Jochen Nitschke <[email protected]> Date: Sun Jun 18 11:56:15 2017 +0200 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 <[email protected]> Tested-by: Noel Grandin <[email protected]> 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 ) { _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
