summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-08-23 08:33:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-23 09:58:25 +0200
commitfcd990f208be4430157dca2d6093337f21cb079b (patch)
tree8b132e4081b8f4d9cc4f8aa71f6d937d4f65ef03 /sfx2
parent3e7990faa4dda6022c63aebb2ac8f12b2bbc0731 (diff)
Some clean up after previous commit
Change-Id: Ie419c769c5d661d51c1b43b9808791dcf9e1725c
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objstor.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index ed80ba2a1c64..64eadd5bb67e 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include "sal/config.h"
+
+#include <cassert>
+
#include <vcl/msgbox.hxx>
#include <svl/eitem.hxx>
#include <svl/stritem.hxx>
@@ -241,10 +245,9 @@ sal_Bool SfxObjectShell::PutURLContentsToVersionStream_Impl(
throw RuntimeException();
uno::Reference< io::XInputStream > xTmpInStream =
- ::comphelper::OStorageHelper::GetInputStreamFromURL( aURL );
- DBG_ASSERT( xTmpInStream.is(), "The method must create the stream or throw an exception!\n" );
- if ( !xTmpInStream.is() )
- throw uno::RuntimeException();
+ ::comphelper::OStorageHelper::GetInputStreamFromURL(
+ aURL, comphelper::getProcessComponentContext() );
+ assert( xTmpInStream.is() );
xTrunc->truncate();
::comphelper::OStorageHelper::CopyInputToOutput( xTmpInStream, xOutStream );