summaryrefslogtreecommitdiff
path: root/package/source/xstor/selfterminatefilestream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'package/source/xstor/selfterminatefilestream.cxx')
-rw-r--r--package/source/xstor/selfterminatefilestream.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/source/xstor/selfterminatefilestream.cxx b/package/source/xstor/selfterminatefilestream.cxx
index ee726ca691b5..f47e95b5a6f1 100644
--- a/package/source/xstor/selfterminatefilestream.cxx
+++ b/package/source/xstor/selfterminatefilestream.cxx
@@ -21,7 +21,6 @@
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
#include "selfterminatefilestream.hxx"
-#include <comphelper/componentcontext.hxx>
#include <comphelper/processfactory.hxx>
using namespace ::com::sun::star;
@@ -38,7 +37,7 @@ OSelfTerminateFileStream::OSelfTerminateFileStream( const uno::Reference< lang::
// otherwise an exception is thrown in constructor
m_xFileAccess.set( ucb::SimpleFileAccess::create(
- comphelper::ComponentContext(xOwnFactory).getUNOContext() ) );
+ comphelper::getComponentContext(xOwnFactory) ) );
m_xInputStream.set( m_xFileAccess->openFileRead( aURL ), uno::UNO_SET_THROW );
m_xSeekable.set( m_xInputStream, uno::UNO_QUERY_THROW );