From 05e55ab79d4fed822892c60387812856aeacd783 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 18 Mar 2015 14:24:55 +0100 Subject: [PATCH] Fix initialization order for type objects refs #8791 --- lib/base/primitivetype.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/base/primitivetype.hpp b/lib/base/primitivetype.hpp index e061a2468..93a5d88b1 100644 --- a/lib/base/primitivetype.hpp +++ b/lib/base/primitivetype.hpp @@ -54,7 +54,7 @@ private: t->SetPrototype(prototype); \ icinga::Type::Register(t); \ } \ - INITIALIZE_ONCE(RegisterBuiltinType); \ + INITIALIZE_ONCE_WITH_PRIORITY(RegisterBuiltinType, 15); \ } } } #define REGISTER_PRIMITIVE_TYPE(type, prototype) \ @@ -66,7 +66,7 @@ private: icinga::Type::Register(t); \ type::TypeInstance = t; \ } \ - INITIALIZE_ONCE(RegisterPrimitiveType); \ + INITIALIZE_ONCE_WITH_PRIORITY(RegisterPrimitiveType, 15); \ } } } \ DEFINE_TYPE_INSTANCE(type)