[haiku-commits] r40537 - haiku/trunk/src/preferences/time

  • From: zooey@xxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 16 Feb 2011 20:22:44 +0100 (CET)

Author: zooey
Date: 2011-02-16 20:22:43 +0100 (Wed, 16 Feb 2011)
New Revision: 40537
Changeset: http://dev.haiku-os.org/changeset/40537

Modified:
   haiku/trunk/src/preferences/time/SectionEdit.cpp
Log:
* minor cleanup

Modified: haiku/trunk/src/preferences/time/SectionEdit.cpp
===================================================================
--- haiku/trunk/src/preferences/time/SectionEdit.cpp    2011-02-16 18:23:10 UTC 
(rev 40536)
+++ haiku/trunk/src/preferences/time/SectionEdit.cpp    2011-02-16 19:22:43 UTC 
(rev 40537)
@@ -8,6 +8,7 @@
  *
  */
 
+
 #include "SectionEdit.h"
 
 #include <Bitmap.h>
@@ -88,7 +89,7 @@
 
        for (uint32 idx = 0; idx < fSectionCount; idx++) {
                DrawSection(idx, ((uint32)fFocus == idx) && IsFocus());
-               if (idx < fSectionCount -1)
+               if (idx < fSectionCount - 1)
                        DrawSeparator(idx);
        }
 }
@@ -103,7 +104,7 @@
                DoUpPress();
        else if (fDownRect.Contains(where))
                DoDownPress();
-       else if (fSectionList->CountItems()> 0) {
+       else if (fSectionList->CountItems() > 0) {
                TSection* section;
                for (uint32 idx = 0; idx < fSectionCount; idx++) {
                        section = (TSection*)fSectionList->ItemAt(idx);
@@ -141,7 +142,7 @@
                case B_LEFT_ARROW:
                        fFocus -= 1;
                        if (fFocus < 0)
-                               fFocus = fSectionCount -1;
+                               fFocus = fSectionCount - 1;
                        SectionFocus(fFocus);
                        break;
 
@@ -251,4 +252,3 @@
 {
        return 0.0f;
 }
-


Other related posts:

  • » [haiku-commits] r40537 - haiku/trunk/src/preferences/time - zooey