From 49c7bc5af291dbf6b34bcea82c9c0513f65b308b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 1 Nov 2016 14:53:41 +0200 Subject: loplugin:expandablemethods in accessibility Change-Id: I51d13c12274d99623b97f611e30204bea624cbfc --- .../source/extended/accessibleiconchoicectrlentry.cxx | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'accessibility/source/extended/accessibleiconchoicectrlentry.cxx') diff --git a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx index d60fe598557d..591c254e775a 100644 --- a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx +++ b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx @@ -232,31 +232,19 @@ throw(RuntimeException, std::exception) OUString SAL_CALL AccessibleIconChoiceCtrlEntry::getImplementationName() throw(RuntimeException, std::exception) { - return getImplementationName_Static(); + return OUString( "com.sun.star.comp.svtools.AccessibleIconChoiceControlEntry" ); } Sequence< OUString > SAL_CALL AccessibleIconChoiceCtrlEntry::getSupportedServiceNames() throw(RuntimeException, std::exception) - { - return getSupportedServiceNames_Static(); - } - - sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::supportsService( const OUString& _rServiceName ) throw (RuntimeException, std::exception) - { - return cppu::supportsService(this, _rServiceName); - } - - // XServiceInfo - static methods - - Sequence< OUString > AccessibleIconChoiceCtrlEntry::getSupportedServiceNames_Static() throw( RuntimeException ) { return {"com.sun.star.accessibility.AccessibleContext", "com.sun.star.accessibility.AccessibleComponent", "com.sun.star.awt.AccessibleIconChoiceControlEntry"}; } - OUString AccessibleIconChoiceCtrlEntry::getImplementationName_Static() throw( RuntimeException ) + sal_Bool SAL_CALL AccessibleIconChoiceCtrlEntry::supportsService( const OUString& _rServiceName ) throw (RuntimeException, std::exception) { - return OUString( "com.sun.star.comp.svtools.AccessibleIconChoiceControlEntry" ); + return cppu::supportsService(this, _rServiceName); } // XAccessible -- cgit