Added MakeEmpty() method.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1513 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user