]> granicus.if.org Git - icinga2/commitdiff
Make sure base classes are registered in the right order
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 12 Aug 2016 12:18:23 +0000 (14:18 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 12 Aug 2016 12:18:59 +0000 (14:18 +0200)
refs #12408

lib/base/objecttype.cpp
lib/base/type.cpp

index 443ebe87a5f8fe0268b307d46c0b8b94f0bddee4..764fdbaf9aadac19924e1b14b580ddaa44f56018 100644 (file)
@@ -30,7 +30,7 @@ static void RegisterObjectType(void)
        Object::TypeInstance = type;
 }
 
-INITIALIZE_ONCE(&RegisterObjectType);
+INITIALIZE_ONCE_WITH_PRIORITY(&RegisterObjectType, 20);
 
 ObjectType::ObjectType(void)
 { }
index 211eaa13d48d5500b20ec029244100c2e3827a11..ab6b102321f1640dd13785d1692bea21196957ef 100644 (file)
@@ -32,7 +32,7 @@ static void RegisterTypeType(void)
        Type::Register(type);
 }
 
-INITIALIZE_ONCE(RegisterTypeType);
+INITIALIZE_ONCE_WITH_PRIORITY(RegisterTypeType, 20);
 
 String Type::ToString(void) const
 {