diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-09-15 19:51:09 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-09-15 19:51:09 +0100 |
commit | 084d40d601e407fde2cba7458ea29665052c4a55 (patch) | |
tree | 3cdff48a55779a077a1f033a1209a2ed34bf9799 /ucb/source | |
parent | d7515f60dc0ebb54fb2db7de46b3579963698e6a (diff) |
fix odma plugin for new ucbhelper API
Change-Id: I40c58967aca4f9a808feb8528f2f3ba651bb2a80
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/ucp/odma/odma_content.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ucb/source/ucp/odma/odma_content.cxx b/ucb/source/ucp/odma/odma_content.cxx index 01e9fd94df3c..ecde1938961d 100644 --- a/ucb/source/ucp/odma/odma_content.cxx +++ b/ucb/source/ucp/odma/odma_content.cxx @@ -349,7 +349,9 @@ uno::Any SAL_CALL Content::execute( rtl::OUString aURL = m_xIdentifier->getContentIdentifier(); rtl::OUString sFileURL = openDoc(); delete m_pContent; - m_pContent = new ::ucbhelper::Content(sFileURL,NULL); + m_pContent = new ::ucbhelper::Content + (sFileURL,NULL, + comphelper::ComponentContext(m_xSMgr).getUNOContext()); if(!m_pContent->isDocument()) { rtl::OUString sErrorMsg("File: "); @@ -507,7 +509,8 @@ uno::Any SAL_CALL Content::execute( sal_Int32 nLastIndex = sFileURL.lastIndexOf( sal_Unicode('/') ); // 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); + ::ucbhelper::Content aContent(sFileURL.copy(0,nLastIndex),NULL, + comphelper::ComponentContext(m_xSMgr).getUNOContext()); // aTransferInfo.NameClash = ucb::NameClash::OVERWRITE; aTransferInfo.NewTitle = sFileURL.copy( 1 + nLastIndex ); // Copy our saved backup copy to the "shadow" file. |