summaryrefslogtreecommitdiffstats
path: root/source/GroupManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/GroupManager.cpp26
1 files changed, 20 insertions, 6 deletions
diff --git a/source/GroupManager.cpp b/source/GroupManager.cpp
index 912f1196c..a474de9cb 100644
--- a/source/GroupManager.cpp
+++ b/source/GroupManager.cpp
@@ -12,16 +12,19 @@
typedef std::map< AString, cGroup* > GroupMap;
+
+
+
+
+
struct cGroupManager::sGroupManagerState
{
GroupMap Groups;
};
-cGroupManager* cGroupManager::GetGroupManager()
-{
- LOGWARN("WARNING: Using deprecated function cGroupManager::GetGroupManager() use cRoot::Get()->GetGroupManager() instead!");
- return cRoot::Get()->GetGroupManager();
-}
+
+
+
cGroupManager::~cGroupManager()
{
@@ -34,6 +37,10 @@ cGroupManager::~cGroupManager()
delete m_pState;
}
+
+
+
+
cGroupManager::cGroupManager()
: m_pState( new sGroupManagerState )
{
@@ -98,6 +105,10 @@ cGroupManager::cGroupManager()
LOG("-- Done Loading Groups --");
}
+
+
+
+
cGroup* cGroupManager::GetGroup( const AString & a_Name )
{
GroupMap::iterator itr = m_pState->Groups.find( a_Name );
@@ -110,5 +121,8 @@ cGroup* cGroupManager::GetGroup( const AString & a_Name )
m_pState->Groups[a_Name] = Group;
return Group;
+}
+
+
+
-} \ No newline at end of file