summaryrefslogtreecommitdiff
path: root/package/source/xstor/switchpersistencestream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'package/source/xstor/switchpersistencestream.cxx')
-rw-r--r--package/source/xstor/switchpersistencestream.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/source/xstor/switchpersistencestream.cxx b/package/source/xstor/switchpersistencestream.cxx
index 359a65a0ac40..16581fa73ecf 100644
--- a/package/source/xstor/switchpersistencestream.cxx
+++ b/package/source/xstor/switchpersistencestream.cxx
@@ -20,7 +20,7 @@
#include <osl/diagnose.h>
#include <com/sun/star/io/TempFile.hpp>
-#include <comphelper/componentcontext.hxx>
+#include <comphelper/processfactory.hxx>
#include <comphelper/storagehelper.hxx>
#include <switchpersistencestream.hxx>
@@ -176,7 +176,7 @@ void SwitchablePersistenceStream::CopyAndSwitchPersistenceTo( const uno::Referen
if ( !xTargetStream.is() )
{
xTargetStream = uno::Reference < io::XStream >(
- io::TempFile::create(comphelper::ComponentContext(m_xFactory).getUNOContext()),
+ io::TempFile::create(comphelper::getComponentContext(m_xFactory)),
uno::UNO_QUERY_THROW );
xTargetSeek = uno::Reference< io::XSeekable >( xTargetStream, uno::UNO_QUERY_THROW );