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/localedata | |
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/localedata')
-rw-r--r-- | i18npool/source/localedata/localedata.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
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 <cppuhelper/supportsservice.hxx> #include <localedata.hxx> #include <i18nlangtag/mslangid.hxx> #include <i18nlangtag/languagetag.hxx> @@ -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 |