From 4b2262ab5b10f334f1984fec84d2978db81c58f1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 5 Jul 2017 08:32:57 +0200 Subject: new loplugin unnecessaryparen Change-Id: Ic883a07b30069ca6342d7521c8ad890f4326f0ec Reviewed-on: https://gerrit.libreoffice.org/39549 Tested-by: Jenkins Reviewed-by: Noel Grandin --- io/source/stm/odata.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io') diff --git a/io/source/stm/odata.cxx b/io/source/stm/odata.cxx index e88a6bcb82fa..ed6402e5ed8d 100644 --- a/io/source/stm/odata.cxx +++ b/io/source/stm/odata.cxx @@ -335,7 +335,7 @@ OUString ODataInputStream::readUTF() char2 = (sal_uInt8)readByte(); char3 = (sal_uInt8)readByte(); - if( (((char2 & 0xC0) != 0x80) || ((char3 & 0xC0) != 0x80)) ) { + if( ((char2 & 0xC0) != 0x80) || ((char3 & 0xC0) != 0x80) ) { throw WrongFormatException( ); } pStr[nStrLen++] = (sal_Unicode(c & 0x0F) << 12) | @@ -1155,7 +1155,7 @@ Reference< XPersistObject > OObjectInputStream::readObject() // Read the length of the object sal_Int32 nObjLen = readLong(); - if( ( 0 == nId && 0 != nObjLen ) ) + if( 0 == nId && 0 != nObjLen ) { throw WrongFormatException(); } -- cgit