aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2024-02-26 15:13:28 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2024-02-26 14:53:24 +0000
commite43fde322e932ceac1bba3825c29919ea04a1087 (patch)
tree5df431154acb5a4f038ae2e5c2a731f0c2275f34 /src/plugins/cppeditor
parent3f692e2f1743d58bf7af6312a9199a857fc7ddee (diff)
CppEditor: Fix indentation of function call arguments
... following an argument with an array subscript operator. Fixes: QTCREATORBUG-29225 Change-Id: Iba38043d94be718efee30ce50f5b55aac4ba6ecd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cppeditor')
-rw-r--r--src/plugins/cppeditor/cppcodeformatter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cppcodeformatter.cpp b/src/plugins/cppeditor/cppcodeformatter.cpp
index 6b30e78fa6..d09fa37d45 100644
--- a/src/plugins/cppeditor/cppcodeformatter.cpp
+++ b/src/plugins/cppeditor/cppcodeformatter.cpp
@@ -204,7 +204,7 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block)
case T_IDENTIFIER: // '&', id, 'this' are allowed both in the capture list and subscribtion
case T_AMPER:
case T_THIS: break;
- default: leave(); leave(); tryExpression(m_currentState.at(m_currentState.size() - 1).type == declaration_start); break;
+ default: tryExpression(m_currentState.at(m_currentState.size() - 2).type == declaration_start); break;
// any other symbol allowed only in subscribtion operator
} break;