Skip to content
Snippets Groups Projects
Commit 8215a1d0 authored by Christian Kamm's avatar Christian Kamm
Browse files

C++ indenter: Fix member initializer indent being hardcoded to 4.

Task-number: QTCREATORBUG-2456
parent 0e0841da
No related branches found
No related tags found
No related merge requests found
......@@ -1282,7 +1282,7 @@ void QtStyleCodeFormatter::adjustIndent(const QList<CPlusPlus::Token> &tokens, i
case T_COLON:
// ### ok for constructor initializer lists - what about ? and bitfields?
if (topState.type == expression && previousState.type == declaration_start) {
*paddingDepth = 4;
*paddingDepth = m_indentSize;
} else if (topState.type == ternary_op) {
*paddingDepth -= 2;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment