summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-12-04 11:20:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-05 07:49:30 +0100
commite4472d3c139294499f4c0caeebd9d4e995958eb0 (patch)
tree3e62a6530f8b758dddab18981ee38cc76ecaef9e /basic
parent126e5a4d5b1d6c7ba5b313786793a38f99488b33 (diff)
loplugin:unnecessaryparen include more assignments
Change-Id: I9fb8366634b31230b732dd38a98f800075529714 Reviewed-on: https://gerrit.libreoffice.org/64510 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/io.cxx2
-rw-r--r--basic/source/runtime/methods.cxx6
2 files changed, 4 insertions, 4 deletions
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(" ");
}