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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user