diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-11 08:39:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-11 10:49:24 +0200 |
commit | bc80f951c14208eae6060fe2e6a941f9dd2d619c (patch) | |
tree | fb6e3f0523c0c562951ea5fa7b6f654726d1b443 /basic/source/comp | |
parent | 1b26a4eb4ba99cb4a47da83c4e6419f2065f9d17 (diff) |
loplugin:unusedmethods unused return value in basic
Change-Id: I0ccbf994d2c9be35f43fc3c62e60da90634bacdf
Diffstat (limited to 'basic/source/comp')
-rw-r--r-- | basic/source/comp/buffer.cxx | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/basic/source/comp/buffer.cxx b/basic/source/comp/buffer.cxx index 1a4405caa379..bb1be6e142b1 100644 --- a/basic/source/comp/buffer.cxx +++ b/basic/source/comp/buffer.cxx @@ -151,17 +151,12 @@ void SbiBuffer::Chain( sal_uInt32 off ) } } -bool SbiBuffer::operator +=( sal_Int8 n ) +void SbiBuffer::operator +=( sal_Int8 n ) { if( Check( 1 ) ) { *pCur++ = (char) n; nOff += 1; - return true; - } - else - { - return false; } } @@ -179,18 +174,13 @@ bool SbiBuffer::operator +=( sal_uInt8 n ) } } -bool SbiBuffer::operator +=( sal_Int16 n ) +void SbiBuffer::operator +=( sal_Int16 n ) { if( Check( 2 ) ) { *pCur++ = (char) ( n & 0xFF ); *pCur++ = (char) ( n >> 8 ); nOff += 2; - return true; - } - else - { - return false; } } @@ -224,13 +214,13 @@ bool SbiBuffer::operator +=( sal_uInt32 n ) } } -bool SbiBuffer::operator +=( sal_Int32 n ) +void SbiBuffer::operator +=( sal_Int32 n ) { - return operator +=( (sal_uInt32) n ); + operator +=( (sal_uInt32) n ); } -bool SbiBuffer::operator +=( const OUString& n ) +void SbiBuffer::operator +=( const OUString& n ) { sal_uInt32 len = n.getLength() + 1; if( Check( len ) ) @@ -239,11 +229,6 @@ bool SbiBuffer::operator +=( const OUString& n ) memcpy( pCur, aByteStr.getStr(), len ); pCur += len; nOff += len; - return true; - } - else - { - return false; } } |