diff options
Diffstat (limited to 'scripting/source/provider/URIHelper.cxx')
-rw-r--r-- | scripting/source/provider/URIHelper.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/scripting/source/provider/URIHelper.cxx b/scripting/source/provider/URIHelper.cxx index 9343aa329f27..b6f1103986c4 100644 --- a/scripting/source/provider/URIHelper.cxx +++ b/scripting/source/provider/URIHelper.cxx @@ -21,6 +21,7 @@ #include <com/sun/star/uri/XVndSunStarScriptUrl.hpp> #include <com/sun/star/uri/UriReferenceFactory.hpp> +#include <cppuhelper/supportsservice.hxx> #include <rtl/ustrbuf.hxx> #include "URIHelper.hxx" @@ -272,14 +273,7 @@ sal_Bool SAL_CALL ScriptingFrameworkURIHelper::supportsService( const OUString& serviceName ) throw( uno::RuntimeException, std::exception ) { - OUString m_sServiceName( - "com.sun.star.script.provider.ScriptURIHelper" ); - - if ( serviceName.equals( m_sServiceName ) ) - { - return sal_True; - } - return sal_False; + return cppu::supportsService( this, serviceName ); } uno::Sequence< OUString > SAL_CALL |