From 6cd3118b6370a0314e58692e08b68c4dcb0f922a Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Tue, 17 Dec 2013 01:14:30 -0200 Subject: fdo#54938: Convert i18npool to use cppu::supportsService Change-Id: I9acc496cd95c8362972fa0c41d35b77fc0715aba Signed-off-by: Stephan Bergmann --- i18npool/source/breakiterator/breakiteratorImpl.cxx | 4 ++-- i18npool/source/breakiterator/breakiterator_unicode.cxx | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'i18npool/source/breakiterator') diff --git a/i18npool/source/breakiterator/breakiteratorImpl.cxx b/i18npool/source/breakiterator/breakiteratorImpl.cxx index 0123583b0ad9..fb44d733d9ff 100644 --- a/i18npool/source/breakiterator/breakiteratorImpl.cxx +++ b/i18npool/source/breakiterator/breakiteratorImpl.cxx @@ -17,8 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include +#include #include #include #include @@ -616,7 +616,7 @@ BreakIteratorImpl::getImplementationName(void) throw( RuntimeException ) sal_Bool SAL_CALL BreakIteratorImpl::supportsService(const OUString& rServiceName) throw( RuntimeException ) { - return rServiceName.equalsAscii(cBreakIterator); + return cppu::supportsService(this, rServiceName); } Sequence< OUString > SAL_CALL diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx index 3bb2e3ef7c54..08c067741bfc 100644 --- a/i18npool/source/breakiterator/breakiterator_unicode.cxx +++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx @@ -18,6 +18,7 @@ */ #include +#include #include #include #include @@ -439,8 +440,6 @@ LineBreakResults SAL_CALL BreakIterator_Unicode::getLineBreak( return lbr; } - - OUString SAL_CALL BreakIterator_Unicode::getImplementationName(void) throw( uno::RuntimeException ) { @@ -450,7 +449,7 @@ BreakIterator_Unicode::getImplementationName(void) throw( uno::RuntimeException sal_Bool SAL_CALL BreakIterator_Unicode::supportsService(const OUString& rServiceName) throw( uno::RuntimeException ) { - return rServiceName.equalsAscii(cBreakIterator); + return cppu::supportsService(this, rServiceName); } uno::Sequence< OUString > SAL_CALL -- cgit