Moved static allocator into cpp file

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@606 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2006-02-06 02:03:38 +00:00
parent b88d493616
commit 2a32927dc7
2 changed files with 7 additions and 5 deletions
+6
View File
@@ -1172,3 +1172,9 @@ bool CZNC::AddUser(CUser* pUser) {
DEBUG_ONLY(cout << "Invalid user [" << pUser->GetUserName() << "] - [" << sErr << "]" << endl);
return false;
}
CZNC& CZNC::Get() {
static CZNC* pZNC = new CZNC;
return *pZNC;
}