summaryrefslogtreecommitdiff
path: root/comphelper/source/streaming/seekableinput.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/streaming/seekableinput.cxx')
-rw-r--r--comphelper/source/streaming/seekableinput.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/comphelper/source/streaming/seekableinput.cxx b/comphelper/source/streaming/seekableinput.cxx
index 89d887ea3548..e4f654043dc7 100644
--- a/comphelper/source/streaming/seekableinput.cxx
+++ b/comphelper/source/streaming/seekableinput.cxx
@@ -81,10 +81,7 @@ uno::Reference< io::XInputStream > OSeekableInputWrapper::CheckSeekableCanWrap(
if ( xSeek.is() )
return xInStream;
- uno::Reference< io::XInputStream > xNewStream(
- static_cast< io::XInputStream* >(
- new OSeekableInputWrapper( xInStream, rxContext ) ) );
- return xNewStream;
+ return new OSeekableInputWrapper(xInStream, rxContext);
}