From f762d9370241609fecaab6f5cf8b7edc54495fef Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 30 May 2011 11:49:05 +0200 Subject: C++ indenter: Fix indent in body of function with default argument. Change-Id: I9d4f5b3ae7b8a59f8350cf756979a3a430398112 Reviewed-on: http://codereview.qt.nokia.com/206 Reviewed-by: Roberto Raggi --- src/plugins/cpptools/cppcodeformatter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/cpptools/cppcodeformatter.cpp') diff --git a/src/plugins/cpptools/cppcodeformatter.cpp b/src/plugins/cpptools/cppcodeformatter.cpp index b477cf06bb..ebe66ce792 100644 --- a/src/plugins/cpptools/cppcodeformatter.cpp +++ b/src/plugins/cpptools/cppcodeformatter.cpp @@ -194,6 +194,7 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block) case T_LBRACE: enter(brace_list_open); break; case T_RBRACE: leave(true); continue; case T_SEMICOLON: leave(); continue; + case T_RPAREN: leave(); continue; default: enter(assign_open); continue; } break; @@ -216,6 +217,7 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block) switch (kind) { case T_RBRACE: leave(true); continue; case T_SEMICOLON: leave(); continue; + case T_RPAREN: leave(); continue; default: tryExpression(); break; } break; -- cgit v1.2.1