otherwise it would trigger useless assignments later on.
Change-Id: I8af23747c8f1abcadc3fd86810093303db65117e
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
// fallthrough
case Tok_Equals:
if (!prospectiveContext.isEmpty()
- && yyBraceDepth == namespaceDepths.count() && yyParenDepth == 0)
+ && yyBraceDepth == namespaceDepths.count() && yyParenDepth == 0) {
pendingContext = prospectiveContext;
+ prospectiveContext.clear();
+ }
yyTok = getToken();
break;
case Tok_LeftBrace:
if (!prospectiveContext.isEmpty()
- && yyBraceDepth == namespaceDepths.count() + 1 && yyParenDepth == 0)
+ && yyBraceDepth == namespaceDepths.count() + 1 && yyParenDepth == 0) {
pendingContext = prospectiveContext;
+ prospectiveContext.clear();
+ }
// fallthrough
case Tok_LeftParen:
case Tok_RightParen: