Added MakeEmpty() method.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1513 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2002-10-14 21:06:39 +00:00
parent 4c0638893d
commit 15a2383ff8
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -84,6 +84,15 @@ AppInfoList::RemoveInfo(RosterAppInfo *info)
return fInfos.RemoveItem(info);
}
// MakeEmpty
/*! \brief Removes all RosterAppInfos from the list.
*/
void
AppInfoList::MakeEmpty()
{
fInfos.MakeEmpty();
}
// InfoFor
/*! \brief Returns the RosterAppInfo with the supplied signature.
+1
View File
@@ -45,6 +45,7 @@ public:
bool AddInfo(RosterAppInfo *info);
bool RemoveInfo(RosterAppInfo *info);
void MakeEmpty();
RosterAppInfo *InfoFor(const char *signature) const;
RosterAppInfo *InfoFor(team_id team) const;