Added missing *::InvalidateMembersCache() calls.

This commit is contained in:
Gunnar Beutner 2013-01-24 15:01:06 +01:00
parent ab66fbfc88
commit a0e7f751cd
4 changed files with 12 additions and 0 deletions

View File

@ -43,6 +43,11 @@ Host::Host(const Dictionary::Ptr& properties)
HostGroup::InvalidateMembersCache();
}
Host::~Host(void)
{
HostGroup::InvalidateMembersCache();
}
String Host::GetAlias(void) const
{
String value = Get("alias");

View File

@ -35,6 +35,7 @@ public:
typedef weak_ptr<Host> WeakPtr;
Host(const Dictionary::Ptr& properties);
~Host(void);
static bool Exists(const String& name);
static Host::Ptr GetByName(const String& name);

View File

@ -66,6 +66,11 @@ Service::Service(const Dictionary::Ptr& serializedObject)
ServiceGroup::InvalidateMembersCache();
}
Service::~Service(void)
{
ServiceGroup::InvalidateMembersCache();
}
String Service::GetAlias(void) const
{
String value = Get("alias");

View File

@ -75,6 +75,7 @@ public:
typedef weak_ptr<Service> WeakPtr;
Service(const Dictionary::Ptr& properties);
~Service(void);
static bool Exists(const String& name);
static Service::Ptr GetByName(const String& name);