Remove doubled "count" in declaration. Fixes a "operation may be undefined"

warning with GCC4.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25033 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2008-04-18 22:55:27 +00:00
parent 9173ac083b
commit 4a32ef2c30
+1 -1
View File
@@ -1326,7 +1326,7 @@ TContentsMenu::Draw(BRect updateRect)
BRect iconFrame, textFrame, itemFrame;
int32 max = fContentsList->CountItems() - fFirstItem;
int32 count = count = (max > kMaxItemCount) ? kMaxItemCount : max;
int32 count = (max > kMaxItemCount) ? kMaxItemCount : max;
count += fFirstItem;
for (int32 index = fFirstItem ; index < count ; index++) {