summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-04-12 23:24:11 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-04-12 23:25:20 +0200
commit091f4f14c596ea0c34d891372a4fc820f92e36ae (patch)
tree85dc379cab61ec20943adce3a5c8730f164be5f8 /vbahelper
parentcddf4bd65fb4ce5615ca770946707d0db657e8ec (diff)
cppcheck: multiCondition, remove 2 duplicate "else if" blocks
Change-Id: I538bacd0e52a5e7d5df9847ad4632e02124aeb95
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/msforms/vbacontrol.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/vbahelper/source/msforms/vbacontrol.cxx b/vbahelper/source/msforms/vbacontrol.cxx
index 7e392273035c..fdcfedcc14b8 100644
--- a/vbahelper/source/msforms/vbacontrol.cxx
+++ b/vbahelper/source/msforms/vbacontrol.cxx
@@ -699,10 +699,6 @@ void SAL_CALL ScVbaControl::setTabIndex( sal_Int32 /*nTabIndex*/ ) throw (uno::R
xVBAControl.set( new ScVbaControl( xVbaParent, xContext, xControl, xModel, xGeoHelper.release() ) );
else if ( xServiceInfo->supportsService( "com.sun.star.awt.UnoFrameModel" ) )
xVBAControl.set( new ScVbaFrame( xVbaParent, xContext, xControl, xModel, xGeoHelper.release(), xDialog ) );
- else if ( xServiceInfo->supportsService( "com.sun.star.awt.UnoControlSpinButtonModel" ) )
- xVBAControl.set( new ScVbaSpinButton( xVbaParent, xContext, xControl, xModel, xGeoHelper.release() ) );
- else if ( xServiceInfo->supportsService( "com.sun.star.custom.awt.UnoControlSystemAXContainerModel" ) )
- xVBAControl.set( new VbaSystemAXControl( xVbaParent, xContext, xControl, xModel, xGeoHelper.release() ) );
if( xVBAControl.is() )
return xVBAControl;
throw uno::RuntimeException( "Unsupported control." , uno::Reference< uno::XInterface >() );