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/numberformatcode/numberformatcode.cxx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'i18npool/source/numberformatcode') diff --git a/i18npool/source/numberformatcode/numberformatcode.cxx b/i18npool/source/numberformatcode/numberformatcode.cxx index 6359a43f1fa2..ab050fc75df9 100644 --- a/i18npool/source/numberformatcode/numberformatcode.cxx +++ b/i18npool/source/numberformatcode/numberformatcode.cxx @@ -17,13 +17,11 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include #include #include #include - - +#include NumberFormatCodeMapper::NumberFormatCodeMapper( const ::com::sun::star::uno::Reference < @@ -269,20 +267,17 @@ NumberFormatCodeMapper::getImplementationName(void) return OUString("com.sun.star.i18n.NumberFormatCodeMapper"); } -const sal_Char cNumFormat[] = "com.sun.star.i18n.NumberFormatMapper"; - -sal_Bool SAL_CALL -NumberFormatCodeMapper::supportsService(const OUString& rServiceName) +sal_Bool SAL_CALL NumberFormatCodeMapper::supportsService(const OUString& rServiceName) throw( ::com::sun::star::uno::RuntimeException ) { - return rServiceName.equalsAscii(cNumFormat); + return cppu::supportsService(this, rServiceName); } ::com::sun::star::uno::Sequence< OUString > SAL_CALL NumberFormatCodeMapper::getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ) { ::com::sun::star::uno::Sequence< OUString > aRet(1); - aRet[0] = OUString::createFromAscii(cNumFormat); + aRet[0] = "com.sun.star.i18n.NumberFormatMapper"; return aRet; } -- cgit