diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-22 14:50:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-23 09:01:24 +0200 |
commit | 7b5fac67fd2441778cb9a6d2f529adc270998144 (patch) | |
tree | 93031caf680ccfe0b7a34d89822811ff172c55fa /basic/source/runtime | |
parent | 75ddf3a22aa83d1b067085bd7132acab5a088856 (diff) |
loplugin:unusedfields in accessibility..comphelper
Change-Id: Ifb68d65fc3e48dd80e3ff2b7a4124468fdda1695
Reviewed-on: https://gerrit.libreoffice.org/39137
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/runtime')
-rw-r--r-- | basic/source/runtime/iosys.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index fca1a1c17cc7..dce5777e14af 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -126,7 +126,6 @@ SbiStream::SbiStream() , nLine(0) , nLen(0) , nMode(SbiStreamFlags::NONE) - , nChan(0) , nError(0) { } @@ -449,11 +448,10 @@ void UCBStream::SetSize( sal_uInt64 nSize ) ErrCode SbiStream::Open -( short nCh, const OString& rName, StreamMode nStrmMode, SbiStreamFlags nFlags, short nL ) +( const OString& rName, StreamMode nStrmMode, SbiStreamFlags nFlags, short nL ) { nMode = nFlags; nLen = nL; - nChan = nCh; nLine = 0; nExpandOnWriteTo = 0; if( ( nStrmMode & ( StreamMode::READ|StreamMode::WRITE ) ) == StreamMode::READ ) @@ -522,7 +520,6 @@ ErrCode SbiStream::Close() MapError(); pStrm.reset(); } - nChan = 0; return nError; } @@ -674,8 +671,8 @@ void SbiIoSystem::Open(short nCh, const OString& rName, StreamMode nMode, SbiStr } else { - pChan[ nCh ] = new SbiStream; - nError = pChan[ nCh ]->Open( nCh, rName, nMode, nFlags, nLen ); + pChan[ nCh ] = new SbiStream; + nError = pChan[ nCh ]->Open( rName, nMode, nFlags, nLen ); if( nError ) { delete pChan[ nCh ]; |