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/textconversion | |
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/textconversion')
-rw-r--r-- | i18npool/source/textconversion/textconversion.cxx | 5 | ||||
-rw-r--r-- | i18npool/source/textconversion/textconversionImpl.cxx | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/i18npool/source/textconversion/textconversion.cxx b/i18npool/source/textconversion/textconversion.cxx index 4c650b4eefc9..fbde6f16efee 100644 --- a/i18npool/source/textconversion/textconversion.cxx +++ b/i18npool/source/textconversion/textconversion.cxx @@ -17,13 +17,12 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include <assert.h> +#include <cppuhelper/supportsservice.hxx> #include <textconversion.hxx> using namespace com::sun::star::uno; - namespace com { namespace sun { namespace star { namespace i18n { #ifndef DISABLE_DYNLOADING @@ -79,7 +78,7 @@ TextConversion::getImplementationName() throw( RuntimeException ) sal_Bool SAL_CALL TextConversion::supportsService(const OUString& rServiceName) throw( RuntimeException ) { - return rServiceName.equalsAscii(implementationName); + return cppu::supportsService(this, rServiceName); } Sequence< OUString > SAL_CALL diff --git a/i18npool/source/textconversion/textconversionImpl.cxx b/i18npool/source/textconversion/textconversionImpl.cxx index b143ca9d9680..2fc29c9fa335 100644 --- a/i18npool/source/textconversion/textconversionImpl.cxx +++ b/i18npool/source/textconversion/textconversionImpl.cxx @@ -17,8 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include <assert.h> +#include <cppuhelper/supportsservice.hxx> #include <textconversionImpl.hxx> #include <localedata.hxx> #include <i18nlangtag/languagetag.hxx> @@ -26,7 +26,6 @@ using namespace com::sun::star::lang; using namespace com::sun::star::uno; - namespace com { namespace sun { namespace star { namespace i18n { TextConversionResult SAL_CALL @@ -123,7 +122,7 @@ sal_Bool SAL_CALL TextConversionImpl::supportsService(const OUString& rServiceName) throw( RuntimeException ) { - return rServiceName.equalsAscii(cTextConversion); + return cppu::supportsService(this, rServiceName); } Sequence< OUString > SAL_CALL |