From 01ce9e24cc5953f44a7dd9a3d93347835e26030d Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 21 Dec 2014 23:52:51 +0100 Subject: fixed crash bug in TestDomain -- if a class has an Owned handle the owner must point to the managed object directly responsible for the lifetime of this handle. Fixed this by making AttributeDescriptor a managed class (though this is not an optimal solution) and using a ManagedVector --- src/core/model/Domain.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/model/Domain.hpp') diff --git a/src/core/model/Domain.hpp b/src/core/model/Domain.hpp index 99ac6e1..31786c1 100644 --- a/src/core/model/Domain.hpp +++ b/src/core/model/Domain.hpp @@ -400,9 +400,9 @@ public: */ StructuredClass(Manager &mgr, std::string name, Handle domain, const Cardinality &cardinality, - Handle attributesDescriptor = {nullptr}, + Handle attributesDescriptor = nullptr, // TODO: What would be a wise default value for isa? - Handle isa = {nullptr}, + Handle isa = nullptr, bool transparent = false, bool root = false) : Descriptor(mgr, std::move(name), domain, attributesDescriptor), -- cgit v1.2.3