From 8215a1d0c04a7c69ee69ef95091fff8d401871b4 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 27 Sep 2010 10:38:50 +0200 Subject: C++ indenter: Fix member initializer indent being hardcoded to 4. Task-number: QTCREATORBUG-2456 --- src/plugins/cpptools/cppcodeformatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cppcodeformatter.cpp') diff --git a/src/plugins/cpptools/cppcodeformatter.cpp b/src/plugins/cpptools/cppcodeformatter.cpp index 744465f398..3a7462be9b 100644 --- a/src/plugins/cpptools/cppcodeformatter.cpp +++ b/src/plugins/cpptools/cppcodeformatter.cpp @@ -1282,7 +1282,7 @@ void QtStyleCodeFormatter::adjustIndent(const QList &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; } -- cgit v1.2.1