From 170cfbc62549e4a74077c4ec403baf35ec4d42f6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Aug 2012 15:49:36 +0200 Subject: fdo#46808, Adapt document::DocumentProperties UNO service to new style Change-Id: I19015d3e3e9aa6e4b3b4bb011183c73ab00365ca --- chart2/source/model/main/ChartModel.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'chart2/source') diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index 5d20b5285209..01f2776273c3 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -57,6 +57,7 @@ #include #include #include +#include // header for class SvNumberFormatter #include @@ -695,10 +696,7 @@ uno::Reference< document::XDocumentProperties > SAL_CALL ::osl::MutexGuard aGuard( m_aModelMutex ); if ( !m_xDocumentProperties.is() ) { - uno::Reference< document::XDocumentProperties > xDocProps( - ::comphelper::getProcessServiceFactory()->createInstance( - C2U("com.sun.star.document.DocumentProperties") ), uno::UNO_QUERY ); - m_xDocumentProperties.set(xDocProps); + m_xDocumentProperties.set( document::DocumentProperties::create( ::comphelper::getProcessComponentContext() ) ); } return m_xDocumentProperties; } -- cgit