summaryrefslogtreecommitdiff
path: root/comphelper/source/streaming
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-30 07:59:06 +0200
committerNoel Grandin <noel@peralex.com>2015-10-30 11:08:36 +0200
commitcb4fa1d1e2e61b686442a9d26220c0f1a6e1d4e7 (patch)
tree2d819dbc32230f7af209b59a5c1f262f4964fa84 /comphelper/source/streaming
parent3bc5df7f32501075149e4b41f6e98ea8dd2cfcbd (diff)
use uno::Reference::set method instead of assignment
Change-Id: I080668f86f0ab8b3bba857ee21411f907ae285c4
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: