From e4472d3c139294499f4c0caeebd9d4e995958eb0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 4 Dec 2018 11:20:03 +0200 Subject: loplugin:unnecessaryparen include more assignments Change-Id: I9fb8366634b31230b732dd38a98f800075529714 Reviewed-on: https://gerrit.libreoffice.org/64510 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/comp/io.cxx | 2 +- basic/source/runtime/methods.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'basic') diff --git a/basic/source/comp/io.cxx b/basic/source/comp/io.cxx index 988e56031a3e..d1abbee9c330 100644 --- a/basic/source/comp/io.cxx +++ b/basic/source/comp/io.cxx @@ -200,7 +200,7 @@ void SbiParser::Open() if( Peek() == WRITE ) { Next(); - nMode |= (StreamMode::READ | StreamMode::WRITE); + nMode |= StreamMode::READ | StreamMode::WRITE; } else nMode |= StreamMode::READ; diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 9490ca242f90..c137909935b0 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -3626,7 +3626,7 @@ void SbRtl_Shell(StarBASIC *, SbxArray & rPar, bool) pParamList.reset( new rtl_uString*[nParamCount]); for(int iVector = 0; iter != aTokenVector.end(); ++iVector, ++iter) { - const OUString& rParamStr = (*iter); + const OUString& rParamStr = *iter; pParamList[iVector] = nullptr; rtl_uString_assign(&(pParamList[iVector]), rParamStr.pData); } @@ -4636,7 +4636,7 @@ void SbRtl_Partition(StarBASIC *, SbxArray & rPar, bool) if( nLen > nLen1 ) { // appending the leading spaces for the lowervalue - for ( sal_Int32 i= (nLen - nLen1) ; i > 0; --i ) + for ( sal_Int32 i= nLen - nLen1; i > 0; --i ) { aRetStr.append(" "); } @@ -4645,7 +4645,7 @@ void SbRtl_Partition(StarBASIC *, SbxArray & rPar, bool) if( nLen > nLen2 ) { // appending the leading spaces for the uppervalue - for ( sal_Int32 i= (nLen - nLen2) ; i > 0; --i ) + for ( sal_Int32 i= nLen - nLen2; i > 0; --i ) { aRetStr.append(" "); } -- cgit