[Libreoffice-commits] core.git: vbahelper/source

Jochen Nitschke j.nitschke+logerrit at ok.de
Sun Jun 18 15:11:03 UTC 2017


 vbahelper/source/vbahelper/vbacommandbarcontrols.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit 1f4d7fc8618828222d7f4447daed4c3361edeea6
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
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 <noel.grandin at collabora.co.uk>
    Tested-by: Noel Grandin <noel.grandin at collabora.co.uk>

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 )
     {


More information about the Libreoffice-commits mailing list