[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kicker (silent)
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2004-10-16 0:08:00
Message-ID: 20041016000800.3F56816D3F () office ! kde ! org
[Download RAW message or body]
CVS commit by aseigo:
CVS_SILENT add in something about switch statements since someone asked
M +16 -0 HACKING 1.2
--- kdebase/kicker/HACKING #1.1:1.2
@@ -34,4 +34,18 @@
{
+Switch statements should have the case line indented and the case block
+itsel further indented, e.g.:
+
+ switch (condition)
+ {
+ case 1:
+ ...
+ break;
+ case 2:
+ ...
+ break;
+ default:
+ ...;
+ }
Spaces
@@ -82,4 +96,6 @@
physical lines.
+Braces around case blocks in switch statements are optional.
+
Constructors
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic