From 3a36408b73d8a9be43cd9f4570537ff1d80c0114 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 29 Aug 2012 09:32:55 +0200 Subject: fdo#46808, Adapt util::NumberFormatter UNO service to new style Create a merged XNumberFormatter2 interface for this service to implement. Which is backwards-compatible, but does not require creating a new service. Change-Id: I57f35cde0a9dbbe91c1d2c3d068cb3a97c7245e3 --- toolkit/source/controls/formattedcontrol.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toolkit') diff --git a/toolkit/source/controls/formattedcontrol.cxx b/toolkit/source/controls/formattedcontrol.cxx index 0089d449e676..230f966fdf48 100644 --- a/toolkit/source/controls/formattedcontrol.cxx +++ b/toolkit/source/controls/formattedcontrol.cxx @@ -31,6 +31,7 @@ #include #include +#include #include #include @@ -251,7 +252,7 @@ namespace toolkit if ( !m_xCachedFormatter.is() ) { m_xCachedFormatter = Reference< XNumberFormatter >( - ::comphelper::createProcessComponent( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.NumberFormatter" ) ) ), + NumberFormatter::create(::comphelper::getProcessComponentContext()), UNO_QUERY_THROW ); } -- cgit