diff options
author | Noel Grandin <noel@peralex.com> | 2015-12-21 11:09:16 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-12-21 12:45:50 +0200 |
commit | 85ae903734ed39fc072e90346953039965b04864 (patch) | |
tree | 09dd58302d90dfdaab7e4edebd6f89f99663dfc1 /unotools/source/ucbhelper/ucblockbytes.cxx | |
parent | 3faf5fd9eeb6a2f8532f8ebf13bfd772bb80ef69 (diff) |
loplugin:unusedfields unotools,unoxml
Change-Id: I824193a9f4b0196ce1127c5cbf16b0064dbb3446
Diffstat (limited to 'unotools/source/ucbhelper/ucblockbytes.cxx')
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index 87827e7ce216..e9f6259807aa 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -1041,10 +1041,9 @@ static bool _UCBOpenContentSync( return ( bAborted || bException ); } -UcbLockBytes::UcbLockBytes( UcbLockBytesHandler* pHandler ) +UcbLockBytes::UcbLockBytes() : m_aExpireDate( DateTime::EMPTY ) , m_xInputStream (nullptr) - , m_xHandler( pHandler ) , m_nError( ERRCODE_NONE ) , m_bTerminated (false) , m_bDontClose( false ) @@ -1375,7 +1374,7 @@ UcbLockBytesRef UcbLockBytes::CreateInputLockBytes( const Reference< XInputStrea if( !xInputStream.is() ) return nullptr; - UcbLockBytesRef xLockBytes = new UcbLockBytes(nullptr); + UcbLockBytesRef xLockBytes = new UcbLockBytes; xLockBytes->setDontClose_Impl(); xLockBytes->setInputStream_Impl( xInputStream ); xLockBytes->terminate_Impl(); @@ -1387,7 +1386,7 @@ UcbLockBytesRef UcbLockBytes::CreateLockBytes( const Reference< XStream >& xStre if( !xStream.is() ) return nullptr; - UcbLockBytesRef xLockBytes = new UcbLockBytes(nullptr); + UcbLockBytesRef xLockBytes = new UcbLockBytes; xLockBytes->setDontClose_Impl(); xLockBytes->setStream_Impl( xStream ); xLockBytes->terminate_Impl(); @@ -1400,7 +1399,7 @@ UcbLockBytesRef UcbLockBytes::CreateLockBytes( const Reference < XContent >& xCo if( !xContent.is() ) return nullptr; - UcbLockBytesRef xLockBytes = new UcbLockBytes( pHandler ); + UcbLockBytesRef xLockBytes = new UcbLockBytes; xLockBytes->SetSynchronMode( !pHandler ); Reference< XActiveDataControl > xSink; if ( eOpenMode & StreamMode::WRITE ) |