From 818c2021d13a24268e4bc3457141e76c008ef296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 25 Jan 2015 20:46:39 +0000 Subject: [PATCH] coverity#1266457 Identical code for different branches Change-Id: I809ad43ad4541e4dcd5c245b469d30605f9f0d27 --- basic/source/comp/buffer.cxx | 5 +---- 1 file changed, 1 insertion(+), 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( n & 0xFFFF ); sal_uInt16 n2 = static_cast( n >> 16 ); - if ( operator +=( n1 ) && operator +=( n2 ) ) - { - return true; - } + operator +=(n1) && operator +=(n2); return true; } else