Use BMenu::RemoveItems() instead of looping... I hope I caught all
occurrences. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19910 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -63,9 +63,7 @@ TTeamMenu::CompareByName(const void *first, const void *second)
|
||||
void
|
||||
TTeamMenu::AttachedToWindow()
|
||||
{
|
||||
BMenuItem *item = NULL;
|
||||
while ((item = RemoveItem((int32)0)) != NULL)
|
||||
delete item;
|
||||
RemoveItems(0, CountItems(), true);
|
||||
|
||||
BMessenger self(this);
|
||||
BList teamList;
|
||||
|
||||
Reference in New Issue
Block a user