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
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment