basic/source/comp/parser.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
New commits: commit 464348e82d8cbb0a6d3e5638da3f737f3e6f2d00 Author: Arnaud Versini <arnaud.vers...@gmail.com> Date: Sat Apr 9 20:36:41 2016 +0200 BASIC: SbiParser Remove useless static_cast and indent the code correctly. Change-Id: I8c7a01c3023f998785c8b719f7ae53da57ff3e47 Reviewed-on: https://gerrit.libreoffice.org/23939 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Arnaud Versini <arnaud.vers...@libreoffice.org> diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx index 477c30d..4e62d3c 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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits