Renamed CZNC::New() to CZNC::Get() and return a static reference instead of a pointer

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@504 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-09-19 02:19:17 +00:00
parent bca3769173
commit 1929ce5ba9
3 changed files with 17 additions and 27 deletions

View File

@@ -71,7 +71,7 @@ public:
return "";
}
CModules& Modules = (bGlobal) ? CZNC::New()->GetModules() : m_pUser->GetModules();
CModules& Modules = (bGlobal) ? CZNC::Get().GetModules() : m_pUser->GetModules();
for (unsigned int a = 0; a < Modules.size(); a++) {
CModule* pModule = Modules[a];