diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-25 20:46:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-25 20:46:39 +0000 |
commit | 818c2021d13a24268e4bc3457141e76c008ef296 (patch) | |
tree | 1d8376be9bb6f355fc7d224cb5d5b331f2443ba6 /basic | |
parent | 2b95714814b60a3d703525a7a5df453e5b87988c (diff) |
coverity#1266457 Identical code for different branches
Change-Id: I809ad43ad4541e4dcd5c245b469d30605f9f0d27
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/buffer.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/basic/source/comp/buffer.cxx b/basic/source/comp/buffer.cxx index bb61087ee731..870f299701d9 100644 --- a/basic/source/comp/buffer.cxx +++ b/basic/source/comp/buffer.cxx @@ -215,10 +215,7 @@ bool SbiBuffer::operator +=( sal_uInt32 n ) { sal_uInt16 n1 = static_cast<sal_uInt16>( n & 0xFFFF ); sal_uInt16 n2 = static_cast<sal_uInt16>( n >> 16 ); - if ( operator +=( n1 ) && operator +=( n2 ) ) - { - return true; - } + operator +=(n1) && operator +=(n2); return true; } else |