Replaced _init_roster_() _delete_roster_() by static functions in BRoster::Private.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11033 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2005-01-25 15:20:11 +00:00
parent 42be32659a
commit 5ac1156848
3 changed files with 11 additions and 23 deletions
+3 -3
View File
@@ -63,11 +63,11 @@ public:
void SaveRecentLists(const char *file) const
{ fRoster->SaveRecentLists(file); }
static void InitBeRoster();
static void DeleteBeRoster();
private:
BRoster *fRoster;
};
extern "C" int _init_roster_();
extern "C" int _delete_roster_();
#endif // _ROSTER_PRIVATE_H
+2 -2
View File
@@ -42,7 +42,7 @@ initialize_before()
DBG(OUT("initialize_before()\n"));
_init_message_();
_init_roster_();
BRoster::Private::InitBeRoster();
BPrivate::init_clipboard();
DBG(OUT("initialize_before() done\n"));
@@ -55,7 +55,7 @@ terminate_after()
{
DBG(OUT("terminate_after()\n"));
_delete_roster_();
BRoster::Private::DeleteBeRoster();
_delete_message_();
_msg_cache_cleanup_();
+6 -18
View File
@@ -98,36 +98,24 @@ BRoster::Private::IsMessengerValid(bool mime) const
: fRoster->fMess.IsValid()));
}
// _init_roster_
// InitBeRoster
/*! \brief Initializes the global be_roster variable.
Called before the global constructors are invoked.
\return Unknown!
\todo Investigate what the return value means.
*/
int
_init_roster_()
void
BRoster::Private::InitBeRoster()
{
be_roster = new BRoster;
return 0;
}
// _delete_roster_
// DeleteBeRoster
/*! \brief Deletes the global be_roster.
Called after the global destructors are invoked.
\return Unknown!
\todo Investigate what the return value means.
*/
int
_delete_roster_()
void
BRoster::Private::DeleteBeRoster()
{
delete be_roster;
return 0;
}