diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2016-04-09 20:36:41 +0200 |
---|---|---|
committer | Arnaud Versini <arnaud.versini@libreoffice.org> | 2016-05-07 12:01:23 +0000 |
commit | 464348e82d8cbb0a6d3e5638da3f737f3e6f2d00 (patch) | |
tree | c1863710ec03a31a9f01afea3bde6eaf0498af09 /basic | |
parent | 8d1f3c6cd9a0935f745282f89d69be53322cf373 (diff) |
BASIC: SbiParser Remove useless static_cast and indent the code correctly.
Change-Id: I8c7a01c3023f998785c8b719f7ae53da57ff3e47
Reviewed-on: https://gerrit.libreoffice.org/23939
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Arnaud Versini <arnaud.versini@libreoffice.org>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/parser.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx index 477c30d4fe93..4e62d3c28f2f 100644 --- a/basic/source/comp/parser.cxx +++ b/basic/source/comp/parser.cxx @@ -376,17 +376,17 @@ bool SbiParser::Parse() Next(); return true; } - // In vba it's possible to do Error.foobar ( even if it results in + // In vba it's possible to do Error.foobar ( even if it results in // a runtime error - if ( eCurTok == ERROR_ && IsVBASupportOn() ) // we probably need to define a subset of keywords where this madness applies e.g. if ( IsVBASupportOn() && SymbolCanBeRedined( eCurTok ) ) + if ( eCurTok == ERROR_ && IsVBASupportOn() ) // we probably need to define a subset of keywords where this madness applies e.g. if ( IsVBASupportOn() && SymbolCanBeRedined( eCurTok ) ) + { + SbiTokenizer tokens( *this ); + tokens.Next(); + if ( tokens.Peek() == DOT ) { - SbiTokenizer tokens( *static_cast<SbiTokenizer*>(this) ); - tokens.Next(); - if ( tokens.Peek() == DOT ) - { - eCurTok = SYMBOL; - ePush = eCurTok; - } + eCurTok = SYMBOL; + ePush = eCurTok; + } } // if there's a symbol, it's either a variable (LET) // or a SUB-procedure (CALL without brackets) |