]> granicus.if.org Git - icinga2/commitdiff
Fix the prototype for the Object class
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 12 Dec 2014 14:47:51 +0000 (15:47 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 12 Dec 2014 14:47:51 +0000 (15:47 +0100)
refs #8065

lib/base/object.cpp

index 1c219b7cf27ef18c7987914ba3ccfb1d78530978..0da33c96ed366aa6eed0120388766569f6ef276e 100644 (file)
 
 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.