Fix the prototype for the Object class

refs #8065
This commit is contained in:
Gunnar Beutner 2014-12-12 15:47:51 +01:00
parent 26c5256c05
commit b8e7c5bc40
1 changed files with 1 additions and 12 deletions

View File

@ -25,18 +25,7 @@
using namespace icinga;
static Object::Ptr GetObjectPrototype(void)
{
static Dictionary::Ptr prototype;
if (!prototype) {
prototype = new Dictionary();
}
return prototype;
}
REGISTER_PRIMITIVE_TYPE(Object, GetObjectPrototype());
REGISTER_PRIMITIVE_TYPE(Object, Object::GetPrototype());
/**
* Default constructor for the Object class.