Bugfix: services property doesn't work when the first host definition is abstract.

Fixes #3300
This commit is contained in:
Gunnar Beutner 2012-10-15 08:45:14 +02:00
parent cfb07e9e2c
commit e426548863
2 changed files with 4 additions and 4 deletions

View File

@ -29,8 +29,8 @@ Host::Host(const Dictionary::Ptr& properties)
: DynamicObject(properties)
{
if (!m_InitializerDone) {
ConfigItem::OnCommitted.connect(boost::bind(&Host::ObjectCommittedHandler, this, _1));
ConfigItem::OnRemoved.connect(boost::bind(&Host::ObjectRemovedHandler, this, _1));
ConfigItem::OnCommitted.connect(boost::bind(&Host::ObjectCommittedHandler, _1));
ConfigItem::OnRemoved.connect(boost::bind(&Host::ObjectRemovedHandler, _1));
m_InitializerDone = true;
}

View File

@ -50,8 +50,8 @@ public:
private:
static bool m_InitializerDone;
void ObjectCommittedHandler(const ConfigItem::Ptr& item);
void ObjectRemovedHandler(const ConfigItem::Ptr& item);
static void ObjectCommittedHandler(const ConfigItem::Ptr& item);
static void ObjectRemovedHandler(const ConfigItem::Ptr& item);
};
}