summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-06-04 17:16:58 +0200
committerNoel Grandin <noel@peralex.com>2013-06-05 08:13:23 +0200
commit95c0d568fdcd0da939c891d861bb470b28079170 (patch)
treeca4e4108178ec1176fd1a976df6f31a08d590210 /sot
parenta1afcae81ca3c4b6bb240263b3259090d48c7715 (diff)
use uno::Reference#clear() method...
...instead of assigning an empty value. Reduces code noise. Change-Id: Ic95b081a41fb740a738c92b3407a9514ccb8b06e
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/ucbstorage.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index cdaf433187db..ed0a7f5026d5 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -693,7 +693,7 @@ UCBStorageStream_Impl::UCBStorageStream_Impl( const String& rName, StreamMode nM
UCBStorageStream_Impl::~UCBStorageStream_Impl()
{
if( m_rSource.is() )
- m_rSource = Reference< XInputStream >();
+ m_rSource.clear();
if( m_pStream )
delete m_pStream;
@@ -1222,7 +1222,7 @@ void UCBStorageStream_Impl::Free()
#endif
m_nRepresentMode = nonset;
- m_rSource = Reference< XInputStream >();
+ m_rSource.clear();
DELETEZ( m_pStream );
}