From 4a08647e39c7f1425c4f2f4ac87314e691c26e83 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sun, 26 Dec 2010 14:25:05 +0000 Subject: [PATCH] Fix CID-4185 (expression can't be true): * drop superfluous checking of uint32 < 0 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39946 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/time/DateTimeEdit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preferences/time/DateTimeEdit.cpp b/src/preferences/time/DateTimeEdit.cpp index 134491aa61..011cce9ab4 100644 --- a/src/preferences/time/DateTimeEdit.cpp +++ b/src/preferences/time/DateTimeEdit.cpp @@ -518,7 +518,7 @@ TDateEdit::DrawSection(uint32 index, bool hasFocus) void TDateEdit::DrawSeparator(uint32 index) { - if (index < 0 || index >= 2) + if (index >= 2) return; TSection* section = static_cast(fSectionList->ItemAt(index));