summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objuno.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-09-19 13:15:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-19 13:16:38 +0200
commit03a9f139bd9ea1a4f9096fc982e6b326def58532 (patch)
treebfb7a08bb4831a1a46b48c3bb49afa77ca436349 /sfx2/source/doc/objuno.cxx
parente8a169c93d7e2443a2e56afe7e99cd0721a2c27b (diff)
ComponentContext::getUnoContext -> getComponentContext simplification
...and some further clean-up. Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
Diffstat (limited to 'sfx2/source/doc/objuno.cxx')
-rw-r--r--sfx2/source/doc/objuno.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/objuno.cxx b/sfx2/source/doc/objuno.cxx
index dfa05ee04e19..4f5c8e194e86 100644
--- a/sfx2/source/doc/objuno.cxx
+++ b/sfx2/source/doc/objuno.cxx
@@ -46,7 +46,7 @@
#include <tools/errcode.hxx>
#include <svl/cntwids.hrc>
-#include <comphelper/componentcontext.hxx>
+#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <comphelper/sequenceasvector.hxx>
#include <comphelper/storagehelper.hxx>
@@ -1183,7 +1183,7 @@ SfxStandaloneDocumentInfoObject::SfxStandaloneDocumentInfoObject( const ::com::s
, _xFactory( xFactory )
{
uno::Reference< lang::XInitialization > xDocProps(
- document::DocumentProperties::create(comphelper::ComponentContext(_xFactory).getUNOContext()),
+ document::DocumentProperties::create(comphelper::getComponentContext(_xFactory)),
uno::UNO_QUERY_THROW);
uno::Any a;
a <<= xDocProps;
@@ -1262,7 +1262,7 @@ void SAL_CALL SfxStandaloneDocumentInfoObject::loadFromURL(const ::rtl::OUStrin
::osl::ClearableMutexGuard aGuard( _pImp->_aMutex );
uno::Reference< document::XDocumentProperties > xDocProps(
- document::DocumentProperties::create(comphelper::ComponentContext(_xFactory).getUNOContext()) );
+ document::DocumentProperties::create(comphelper::getComponentContext(_xFactory)) );
_pImp->Reset(xDocProps);
aGuard.clear();