summaryrefslogtreecommitdiff
path: root/comphelper/source/streaming
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/streaming')
-rw-r--r--comphelper/source/streaming/seekableinput.cxx8
-rw-r--r--comphelper/source/streaming/seqinputstreamserv.cxx4
-rw-r--r--comphelper/source/streaming/seqoutputstreamserv.cxx2
3 files changed, 7 insertions, 7 deletions
diff --git a/comphelper/source/streaming/seekableinput.cxx b/comphelper/source/streaming/seekableinput.cxx
index da3b3690516f..7a39696f0497 100644
--- a/comphelper/source/streaming/seekableinput.cxx
+++ b/comphelper/source/streaming/seekableinput.cxx
@@ -103,7 +103,7 @@ void OSeekableInputWrapper::PrepareCopy_Impl()
if ( xTempSeek.is() )
{
xTempSeek->seek( 0 );
- m_xCopyInput = uno::Reference< io::XInputStream >( xTempOut, uno::UNO_QUERY );
+ m_xCopyInput.set( xTempOut, uno::UNO_QUERY );
if ( m_xCopyInput.is() )
m_xCopySeek = xTempSeek;
}
@@ -193,15 +193,15 @@ void SAL_CALL OSeekableInputWrapper::closeInput()
throw io::NotConnectedException();
m_xOriginalStream->closeInput();
- m_xOriginalStream = uno::Reference< io::XInputStream >();
+ m_xOriginalStream.clear();
if ( m_xCopyInput.is() )
{
m_xCopyInput->closeInput();
- m_xCopyInput = uno::Reference< io::XInputStream >();
+ m_xCopyInput.clear();
}
- m_xCopySeek = uno::Reference< io::XSeekable >();
+ m_xCopySeek.clear();
}
diff --git a/comphelper/source/streaming/seqinputstreamserv.cxx b/comphelper/source/streaming/seqinputstreamserv.cxx
index c795a48b15b3..306a5e68d283 100644
--- a/comphelper/source/streaming/seqinputstreamserv.cxx
+++ b/comphelper/source/streaming/seqinputstreamserv.cxx
@@ -167,8 +167,8 @@ void SAL_CALL SequenceInputStreamService::closeInput() throw ( uno::RuntimeExcep
throw io::NotConnectedException();
m_xInputStream->closeInput();
- m_xInputStream = uno::Reference< io::XInputStream >();
- m_xSeekable = uno::Reference< io::XSeekable >();
+ m_xInputStream.clear();
+ m_xSeekable.clear();
}
// css::io::XSeekable:
diff --git a/comphelper/source/streaming/seqoutputstreamserv.cxx b/comphelper/source/streaming/seqoutputstreamserv.cxx
index 33b8c9c2602d..65f2fa75b891 100644
--- a/comphelper/source/streaming/seqoutputstreamserv.cxx
+++ b/comphelper/source/streaming/seqoutputstreamserv.cxx
@@ -137,7 +137,7 @@ void SAL_CALL SequenceOutputStreamService::closeOutput() throw ( uno::RuntimeExc
throw io::NotConnectedException();
m_xOutputStream->closeOutput();
- m_xOutputStream = uno::Reference< io::XOutputStream >();
+ m_xOutputStream.clear();
}
// css::io::XSequenceOutputStream: