From 4d6560f5066d143552cba861aaadc2f49b4357d4 Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Tue, 4 Mar 2014 08:41:53 -0300 Subject: fdo#54938: Convert some places to use cppu::supportsService The last cases are non obvious, so it's pratically done Change-Id: Icae1da8e238f516eaed0f7fbdf96fff778eac547 Reviewed-on: https://gerrit.libreoffice.org/8445 Reviewed-by: Marcos Paulo de Souza Tested-by: Marcos Paulo de Souza --- xmlhelp/source/treeview/tvfactory.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'xmlhelp/source') diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx index 12f455f8488f..288d542daea4 100644 --- a/xmlhelp/source/treeview/tvfactory.cxx +++ b/xmlhelp/source/treeview/tvfactory.cxx @@ -21,6 +21,7 @@ #include #include #include +#include #include "tvfactory.hxx" #include "tvread.hxx" @@ -87,14 +88,10 @@ TVFactory::getImplementationName() return TVFactory::getImplementationName_static(); } -sal_Bool SAL_CALL -TVFactory::supportsService( - const OUString& ServiceName ) +sal_Bool SAL_CALL TVFactory::supportsService( const OUString& ServiceName ) throw( RuntimeException, std::exception ) { - return - ServiceName.equalsAscii( "com.sun.star.help.TreeView" ) || - ServiceName.equalsAscii( "com.sun.star.ucb.HiearchyDataSource" ); + return cppu::supportsService( this, ServiceName ); } Sequence< OUString > SAL_CALL -- cgit