From: "Lubomir I. Ivanov" <[email protected]>

The extra call "dosomethingelse()" is added with the
intention that user will not be confused to add braces
around single lined "if" conditions.

Signed-off-by: Lubomir I. Ivanov <[email protected]>
---
 CodingStyle | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CodingStyle b/CodingStyle
index 75aa1d4..ead24d0 100644
--- a/CodingStyle
+++ b/CodingStyle
@@ -42,6 +42,7 @@ Basic rules
 
        if (condition) {
                dosomething();
+               dosomethingelse();
        }
 
 - both sides of an if / else clause either use or do not use curly braces:
-- 
1.7.11.msysgit.0

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to