diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-09-19 13:15:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-19 13:16:38 +0200 |
commit | 03a9f139bd9ea1a4f9096fc982e6b326def58532 (patch) | |
tree | bfb7a08bb4831a1a46b48c3bb49afa77ca436349 /ucb/source/ucp/odma/odma_content.cxx | |
parent | e8a169c93d7e2443a2e56afe7e99cd0721a2c27b (diff) |
ComponentContext::getUnoContext -> getComponentContext simplification
...and some further clean-up.
Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea
Diffstat (limited to 'ucb/source/ucp/odma/odma_content.cxx')
-rw-r--r-- | ucb/source/ucp/odma/odma_content.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/odma/odma_content.cxx b/ucb/source/ucp/odma/odma_content.cxx index db824294aa10..5ca37c71461f 100644 --- a/ucb/source/ucp/odma/odma_content.cxx +++ b/ucb/source/ucp/odma/odma_content.cxx @@ -40,7 +40,7 @@ #include <com/sun/star/ucb/OpenMode.hpp> #include <com/sun/star/ucb/XCommandInfo.hpp> #include <com/sun/star/ucb/XPersistentPropertySet.hpp> -#include <comphelper/componentcontext.hxx> +#include <comphelper/processfactory.hxx> #include <ucbhelper/contentidentifier.hxx> #include <ucbhelper/propertyvalueset.hxx> #include <ucbhelper/cancelcommandexecution.hxx> @@ -352,7 +352,7 @@ uno::Any SAL_CALL Content::execute( delete m_pContent; m_pContent = new ::ucbhelper::Content (sFileURL,NULL, - comphelper::ComponentContext(m_xSMgr).getUNOContext()); + comphelper::getComponentContext(m_xSMgr)); if(!m_pContent->isDocument()) { rtl::OUString sErrorMsg("File: "); @@ -511,7 +511,7 @@ uno::Any SAL_CALL Content::execute( // Create a new Content object for the "shadow" file // corresponding to the opened document from the DMS. ::ucbhelper::Content aContent(sFileURL.copy(0,nLastIndex),NULL, - comphelper::ComponentContext(m_xSMgr).getUNOContext()); + comphelper::getComponentContext(m_xSMgr)); // aTransferInfo.NameClash = ucb::NameClash::OVERWRITE; aTransferInfo.NewTitle = sFileURL.copy( 1 + nLastIndex ); // Copy our saved backup copy to the "shadow" file. |