Make RealmList proper singleton in realmd.

This commit is contained in:
XTZGZoReX 2009-11-08 03:36:43 +01:00
parent 1f23884757
commit 6abf7e7f58
4 changed files with 14 additions and 8 deletions

View file

@ -33,6 +33,12 @@ RealmList::RealmList( ) : m_UpdateInterval(0), m_NextUpdateTime(time(NULL))
{
}
RealmList& RealmList::Instance()
{
static RealmList realmlist;
return realmlist;
}
/// Load the realm list from the database
void RealmList::Initialize(uint32 updateInterval)
{