diff --git a/CODING b/CODING --- a/CODING +++ b/CODING @@ -108,29 +108,7 @@ Exceptions ---------- -The Marble coding style has a couple of exceptions to the foundation. - - -Spaces and Parenthesis -- - - - - - - - - - - - -Due to historic reasons, the coding style of Marble has one -exception to the kdelibs style. That exception is that we use the Qt -way of using parenthesis, with a space inside both opening and closing -parenthesis. For example - -Correct: - - if ( width > 100 ) { - setHeight( 200 ); - } - - -Wrong: - - if (width > 100) { - setHeight(200); - } +The Marble coding style has an exception to the foundation. Braces After Multi-line Expressions @@ -142,8 +120,8 @@ Correct: - if ( very_long_sub_expression - && another_very_long_sub_expression ) + if (very_long_sub_expression + && another_very_long_sub_expression) { doSomething(); doSomethingElse(); @@ -151,8 +129,8 @@ Wrong: - if ( very_long_sub_expression - && another_very_long_sub_expression ) { + if (very_long_sub_expression + && another_very_long_sub_expression) { doSomething(); doSomethingElse(); }