From: Gunnar Beutner Date: Fri, 12 Dec 2014 14:47:51 +0000 (+0100) Subject: Fix the prototype for the Object class X-Git-Tag: v2.3.0~506 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8e7c5bc40f092b70020c73c480a0e58fddb3ccf;p=icinga2 Fix the prototype for the Object class refs #8065 --- diff --git a/lib/base/object.cpp b/lib/base/object.cpp index 1c219b7cf..0da33c96e 100644 --- a/lib/base/object.cpp +++ b/lib/base/object.cpp @@ -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.