summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-21 11:09:16 +0200
committerNoel Grandin <noel@peralex.com>2015-12-21 12:45:50 +0200
commit85ae903734ed39fc072e90346953039965b04864 (patch)
tree09dd58302d90dfdaab7e4edebd6f89f99663dfc1 /unotools
parent3faf5fd9eeb6a2f8532f8ebf13bfd772bb80ef69 (diff)
loplugin:unusedfields unotools,unoxml
Change-Id: I824193a9f4b0196ce1127c5cbf16b0064dbb3446
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx9
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.hxx3
2 files changed, 5 insertions, 7 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 )
diff --git a/unotools/source/ucbhelper/ucblockbytes.hxx b/unotools/source/ucbhelper/ucblockbytes.hxx
index b16a51260d2a..b97151f42648 100644
--- a/unotools/source/ucbhelper/ucblockbytes.hxx
+++ b/unotools/source/ucbhelper/ucblockbytes.hxx
@@ -87,7 +87,6 @@ class UcbLockBytes : public virtual SvLockBytes
css::uno::Reference < css::io::XInputStream > m_xInputStream;
css::uno::Reference < css::io::XOutputStream > m_xOutputStream;
css::uno::Reference < css::io::XSeekable > m_xSeekable;
- tools::SvRef<UcbLockBytesHandler> m_xHandler;
ErrCode m_nError;
@@ -95,7 +94,7 @@ class UcbLockBytes : public virtual SvLockBytes
bool m_bDontClose;
bool m_bStreamValid;
- UcbLockBytes( UcbLockBytesHandler* pHandler );
+ UcbLockBytes();
protected:
virtual ~UcbLockBytes();