summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-23 15:49:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-27 15:40:07 +0200
commit170cfbc62549e4a74077c4ec403baf35ec4d42f6 (patch)
tree1c5f1ab911f3a899bd008ed0ba8fb3d0253269fa /chart2
parentf789715a414bd1115401f93d11f09260f891956c (diff)
fdo#46808, Adapt document::DocumentProperties UNO service to new style
Change-Id: I19015d3e3e9aa6e4b3b4bb011183c73ab00365ca
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/model/main/ChartModel.cxx6
1 files changed, 2 insertions, 4 deletions
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 <com/sun/star/drawing/Hatch.hpp>
#include <com/sun/star/drawing/LineDash.hpp>
#include <com/sun/star/drawing/XShapes.hpp>
+#include <com/sun/star/document/DocumentProperties.hpp>
// header for class SvNumberFormatter
#include <svl/zforlist.hxx>
@@ -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;
}