summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-12-04 13:18:35 +0200
committerNoel Grandin <noel@peralex.com>2012-12-06 13:20:31 +0200
commit773ad75b0dbc4dac1cae704c726b5a2d67ae1146 (patch)
treeb95386a6639835d7751a6b3aa7bcdfb114f026f8 /basctl
parent584cd8d1c23d47becb776e382f853ffe77ce9fc2 (diff)
fdo#46808, Adapt util::NumberFormatsSupplier UNO service to new style
Change-Id: I58436d9eea0c38d14cde2dc01aa463d5d71912e9
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/dlged/dlged.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx
index d56814fcd7d9..1e1b92732810 100644
--- a/basctl/source/dlged/dlged.cxx
+++ b/basctl/source/dlged/dlged.cxx
@@ -35,6 +35,7 @@
#include <com/sun/star/awt/XDialog.hpp>
#include <com/sun/star/resource/XStringResourcePersistence.hpp>
#include <com/sun/star/util/XCloneable.hpp>
+#include <com/sun/star/util/NumberFormatsSupplier.hpp>
#include <comphelper/types.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/itempool.hxx>
@@ -434,9 +435,8 @@ Reference< util::XNumberFormatsSupplier > const & DlgEditor::GetNumberFormatsSup
{
if ( !m_xSupplier.is() )
{
- Reference< lang::XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory();
- Reference< util::XNumberFormatsSupplier > xSupplier( xMSF->createInstance(
- "com.sun.star.util.NumberFormatsSupplier" ), UNO_QUERY );
+ Reference< uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext();
+ Reference< util::XNumberFormatsSupplier > xSupplier( util::NumberFormatsSupplier::createWithDefaultLocale(xContext) );
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
if ( !m_xSupplier.is() )