diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-02 11:11:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-02 11:17:12 +0000 |
commit | 4d2c210c74567d9af6bededf3fae6bfd62406f14 (patch) | |
tree | c51cfed1eac6dd425940d0cdc62135d51a0b9a08 /basic | |
parent | 8a238809ba861c810304354f01a5504d43111399 (diff) |
use early return to simplify flow
Change-Id: I98201eac2e038c152422bbc6380cfa321ba266df
Reviewed-on: https://gerrit.libreoffice.org/31534
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/exprtree.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx index 008976f1a7d6..fa8e9d1ecada 100644 --- a/basic/source/comp/exprtree.cxx +++ b/basic/source/comp/exprtree.cxx @@ -1055,11 +1055,11 @@ SbiExprListPtr SbiExprList::ParseParameters( SbiParser* pParser, bool bStandalon { if( ( pExprList->bBracket && eTok == RPAREN ) || SbiTokenizer::IsEoln( eTok ) ) { - if ( SbiTokenizer::IsEoln( eTok ) && pExprList->bBracket) - { - pParser->Error( ERRCODE_BASIC_EXPECTED, RPAREN ); - pExprList->bError = true; - } +// if ( SbiTokenizer::IsEoln( eTok ) && pExprList->bBracket) +// { +// pParser->Error( ERRCODE_BASIC_EXPECTED, RPAREN ); +// pExprList->bError = true; +// } break; } pParser->Error( pExprList->bBracket ? ERRCODE_BASIC_BAD_BRACKETS : ERRCODE_BASIC_EXPECTED, COMMA ); |