summaryrefslogtreecommitdiff
path: root/basic/source/comp/dim.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-22 16:53:50 +0200
committerNoel Grandin <noel@peralex.com>2016-02-22 16:55:11 +0200
commit2d0dab5b150440e1b548ccb64d87883d7c045031 (patch)
tree626b949d0bede186176724741f2df0e778108cea /basic/source/comp/dim.cxx
parent89fe180fbcdfcd8ee3f52955a29eccd3b9ad0f36 (diff)
loplugin:commaoperator in basic/
Change-Id: I320a06e50d032a55d8d5e6354959c12327e319ee
Diffstat (limited to 'basic/source/comp/dim.cxx')
-rw-r--r--basic/source/comp/dim.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/basic/source/comp/dim.cxx b/basic/source/comp/dim.cxx
index ffd7174f26e7..e13bd621d2cf 100644
--- a/basic/source/comp/dim.cxx
+++ b/basic/source/comp/dim.cxx
@@ -225,7 +225,10 @@ void SbiParser::DefVar( SbiOpcode eOp, bool bStatic )
if( eCurTok == _CONST_ )
bConst = true;
else if( Peek() == _CONST_ )
- Next(), bConst = true;
+ {
+ Next();
+ bConst = true;
+ }
// #110004 It can also be a sub/function
if( !bConst && (eCurTok == SUB || eCurTok == FUNCTION || eCurTok == PROPERTY ||
@@ -1225,7 +1228,8 @@ void SbiParser::DefProc( bool bStatic, bool bPrivate )
}
else
{
- aPublics.Add( pDef ), pProc = pDef;
+ aPublics.Add( pDef );
+ pProc = pDef;
}
if( !pProc )
{