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:
Stefano Ceccherini
2007-01-23 11:22:12 +00:00
parent aeb2c49f00
commit 4446e07ae9
4 changed files with 8 additions and 33 deletions
+1 -3
View File
@@ -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;