diff options
Diffstat (limited to 'sfx2/source/doc/objuno.cxx')
-rw-r--r-- | sfx2/source/doc/objuno.cxx | 6 |
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(); |