summaryrefslogtreecommitdiff
path: root/i18npool/source/numberformatcode
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-12-17 01:14:30 -0200
committerStephan Bergmann <sbergman@redhat.com>2013-12-18 10:17:14 +0100
commit6cd3118b6370a0314e58692e08b68c4dcb0f922a (patch)
treedae1a4f84e21716bd450593719e168d8a3bb2cac /i18npool/source/numberformatcode
parent910ec33b72fa7675e606c4389d50d3a0d4adbe45 (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/numberformatcode')
-rw-r--r--i18npool/source/numberformatcode/numberformatcode.cxx13
1 files changed, 4 insertions, 9 deletions
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 <numberformatcode.hxx>
#include <com/sun/star/i18n/KNumberFormatUsage.hpp>
#include <com/sun/star/i18n/KNumberFormatType.hpp>
#include <com/sun/star/i18n/LocaleData.hpp>
-
-
+#include <cppuhelper/supportsservice.hxx>
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;
}