From 15a2383ff895628b87e7bd54f0a7c0be7f4c33d8 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 14 Oct 2002 21:06:39 +0000 Subject: [PATCH] Added MakeEmpty() method. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1513 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/registrar/AppInfoList.cpp | 9 +++++++++ src/servers/registrar/AppInfoList.h | 1 + 2 files changed, 10 insertions(+) diff --git a/src/servers/registrar/AppInfoList.cpp b/src/servers/registrar/AppInfoList.cpp index d3f2a657b4..2f0585a9ac 100644 --- a/src/servers/registrar/AppInfoList.cpp +++ b/src/servers/registrar/AppInfoList.cpp @@ -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. diff --git a/src/servers/registrar/AppInfoList.h b/src/servers/registrar/AppInfoList.h index bab39a0412..ec001dfd23 100644 --- a/src/servers/registrar/AppInfoList.h +++ b/src/servers/registrar/AppInfoList.h @@ -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;