diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-12-17 01:14:30 -0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-12-18 10:17:14 +0100 |
commit | 6cd3118b6370a0314e58692e08b68c4dcb0f922a (patch) | |
tree | dae1a4f84e21716bd450593719e168d8a3bb2cac /i18npool/source/characterclassification/unoscripttypedetector.cxx | |
parent | 910ec33b72fa7675e606c4389d50d3a0d4adbe45 (diff) |
fdo#54938: Convert i18npool to use cppu::supportsService
Change-Id: I9acc496cd95c8362972fa0c41d35b77fc0715aba
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'i18npool/source/characterclassification/unoscripttypedetector.cxx')
-rw-r--r-- | i18npool/source/characterclassification/unoscripttypedetector.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/i18npool/source/characterclassification/unoscripttypedetector.cxx b/i18npool/source/characterclassification/unoscripttypedetector.cxx index 14857d6df5f3..b2b79e8037a8 100644 --- a/i18npool/source/characterclassification/unoscripttypedetector.cxx +++ b/i18npool/source/characterclassification/unoscripttypedetector.cxx @@ -18,12 +18,10 @@ */ #include "unoscripttypedetector.hxx" +#include <cppuhelper/supportsservice.hxx> #include <i18nutil/scripttypedetector.hxx> -// ---------------------------------------------------- // class UnoScriptTypeDetector -// ----------------------------------------------------; - sal_Int16 SAL_CALL UnoScriptTypeDetector::getScriptDirection( const OUString& Text, sal_Int32 nPos, sal_Int16 defaultScriptDirection ) throw (::com::sun::star::uno::RuntimeException) { @@ -74,7 +72,7 @@ UnoScriptTypeDetector::getImplementationName() throw( ::com::sun::star::uno::Run sal_Bool SAL_CALL UnoScriptTypeDetector::supportsService(const OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException ) { - return ServiceName != sDetector; + return cppu::supportsService(this, ServiceName); } ::com::sun::star::uno::Sequence< OUString > SAL_CALL |