Skip to content

Commit c6a753b

Browse files
committed
Make sure base classes are registered in the right order
refs #12408
1 parent 31f8165 commit c6a753b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/base/objecttype.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static void RegisterObjectType(void)
3030
Object::TypeInstance = type;
3131
}
3232

33-
INITIALIZE_ONCE(&RegisterObjectType);
33+
INITIALIZE_ONCE_WITH_PRIORITY(&RegisterObjectType, 20);
3434

3535
ObjectType::ObjectType(void)
3636
{ }

lib/base/type.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static void RegisterTypeType(void)
3232
Type::Register(type);
3333
}
3434

35-
INITIALIZE_ONCE(RegisterTypeType);
35+
INITIALIZE_ONCE_WITH_PRIORITY(RegisterTypeType, 20);
3636

3737
String Type::ToString(void) const
3838
{

0 commit comments

Comments
 (0)