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/localedata/localedata.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'i18npool/source/localedata') diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx index 5d702517b8ae..a2f949071fc3 100644 --- a/i18npool/source/localedata/localedata.cxx +++ b/i18npool/source/localedata/localedata.cxx @@ -17,7 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - +#include #include #include #include @@ -32,7 +32,6 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; using namespace com::sun::star; - static const sal_Char clocaledata[] = "com.sun.star.i18n.LocaleData"; typedef sal_Unicode** (SAL_CALL * MyFunc_Type)( sal_Int16&); @@ -1622,11 +1621,10 @@ LocaleDataImpl::getImplementationName() throw( RuntimeException ) return OUString(clocaledata); } -sal_Bool SAL_CALL -LocaleDataImpl::supportsService(const OUString& rServiceName) +sal_Bool SAL_CALL LocaleDataImpl::supportsService(const OUString& rServiceName) throw( RuntimeException ) { - return rServiceName == clocaledata; + return cppu::supportsService(this, rServiceName); } Sequence< OUString > SAL_CALL -- cgit