diff options
author | Noel Grandin <noel@peralex.com> | 2012-12-04 13:18:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2012-12-06 13:20:31 +0200 |
commit | 773ad75b0dbc4dac1cae704c726b5a2d67ae1146 (patch) | |
tree | b95386a6639835d7751a6b3aa7bcdfb114f026f8 /toolkit/source | |
parent | 584cd8d1c23d47becb776e382f853ffe77ce9fc2 (diff) |
fdo#46808, Adapt util::NumberFormatsSupplier UNO service to new style
Change-Id: I58436d9eea0c38d14cde2dc01aa463d5d71912e9
Diffstat (limited to 'toolkit/source')
-rw-r--r-- | toolkit/source/controls/formattedcontrol.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/toolkit/source/controls/formattedcontrol.cxx b/toolkit/source/controls/formattedcontrol.cxx index e08957dc924d..79e905bbe11e 100644 --- a/toolkit/source/controls/formattedcontrol.cxx +++ b/toolkit/source/controls/formattedcontrol.cxx @@ -23,7 +23,7 @@ #include <com/sun/star/awt/XVclWindowPeer.hpp> #include <com/sun/star/util/NumberFormatter.hpp> -#include <com/sun/star/util/XNumberFormatsSupplier.hpp> +#include <com/sun/star/util/NumberFormatsSupplier.hpp> #include <tools/diagnose_ex.h> #include <comphelper/processfactory.hxx> @@ -74,11 +74,7 @@ namespace toolkit if ( !rDefaultFormats.is() && !rbTriedCreation ) { rbTriedCreation = true; - rDefaultFormats = Reference< XNumberFormatsSupplier >( - ::comphelper::getProcessServiceFactory()->createInstance( - ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.NumberFormatsSupplier" ) ) ), - UNO_QUERY_THROW - ); + rDefaultFormats = NumberFormatsSupplier::createWithDefaultLocale( ::comphelper::getProcessComponentContext() ); } if ( !rDefaultFormats.is() ) throw RuntimeException(); |