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

  • From: zooey@xxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 26 Dec 2010 15:25:05 +0100 (CET)

Author: zooey
Date: 2010-12-26 15:25:05 +0100 (Sun, 26 Dec 2010)
New Revision: 39946
Changeset: http://dev.haiku-os.org/changeset/39946

Modified:
   haiku/trunk/src/preferences/time/DateTimeEdit.cpp
Log:
Fix CID-4185 (expression can't be true):
* drop superfluous checking of uint32 < 0

Modified: haiku/trunk/src/preferences/time/DateTimeEdit.cpp
===================================================================
--- haiku/trunk/src/preferences/time/DateTimeEdit.cpp   2010-12-26 14:21:36 UTC 
(rev 39945)
+++ haiku/trunk/src/preferences/time/DateTimeEdit.cpp   2010-12-26 14:25:05 UTC 
(rev 39946)
@@ -518,7 +518,7 @@
 void
 TDateEdit::DrawSeparator(uint32 index)
 {
-       if (index < 0 || index >= 2)
+       if (index >= 2)
                return;
 
        TSection* section = static_cast<TSection*>(fSectionList->ItemAt(index));


Other related posts:

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