diff options
author | Noel Grandin <noel@peralex.com> | 2012-09-19 15:29:46 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-10-23 11:33:14 +0200 |
commit | f4776bf465ee682f65d1e978b031c928d9d310a5 (patch) | |
tree | c361f3415fbb33e363f408579184ec224b18ed16 /svtools/source | |
parent | d40dceb75b3a2b717a36919d5f30189d918940e2 (diff) |
fdo#46808, fix up some NumberFormatter createInstance calls I missed
Change-Id: Ieb3ce841243797a119f1d1d40379ff2a4614168f
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/table/cellvalueconversion.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svtools/source/table/cellvalueconversion.cxx b/svtools/source/table/cellvalueconversion.cxx index 677283a92001..6aef3ad95301 100644 --- a/svtools/source/table/cellvalueconversion.cxx +++ b/svtools/source/table/cellvalueconversion.cxx @@ -27,7 +27,7 @@ #include "cellvalueconversion.hxx" -#include <com/sun/star/util/XNumberFormatter.hpp> +#include <com/sun/star/util/NumberFormatter.hpp> #include <com/sun/star/util/XNumberFormatsSupplier.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/util/Date.hpp> @@ -54,6 +54,8 @@ namespace svt /** === begin UNO using === **/ using ::com::sun::star::uno::Any; using ::com::sun::star::util::XNumberFormatter; + using ::com::sun::star::util::XNumberFormatter2; + using ::com::sun::star::util::NumberFormatter; using ::com::sun::star::uno::UNO_QUERY_THROW; using ::com::sun::star::util::XNumberFormatsSupplier; using ::com::sun::star::beans::XPropertySet; @@ -343,8 +345,7 @@ namespace svt try { // a number formatter - Reference< XNumberFormatter > const xFormatter( - io_data.aContext.createComponent( "com.sun.star.util.NumberFormatter" ), UNO_QUERY_THROW ); + Reference< XNumberFormatter > const xFormatter( NumberFormatter::create( io_data.aContext.getUNOContext() ), UNO_QUERY_THROW ); // a supplier of number formats Sequence< Any > aInitArgs(1); |