summaryrefslogtreecommitdiff
path: root/src/core/model/Domain.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-12-21 23:52:51 +0100
committerAndreas Stöckel <andreas@somweyr.de>2014-12-21 23:52:51 +0100
commit01ce9e24cc5953f44a7dd9a3d93347835e26030d (patch)
tree617a437d6d3e934c3f7ae9dba28260dabc70bcc2 /src/core/model/Domain.hpp
parent1a924c27789483ac43134d6fdedd80fa24a9d0b9 (diff)
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
Diffstat (limited to 'src/core/model/Domain.hpp')
-rw-r--r--src/core/model/Domain.hpp4
1 files changed, 2 insertions, 2 deletions
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> domain,
const Cardinality &cardinality,
- Handle<StructType> attributesDescriptor = {nullptr},
+ Handle<StructType> attributesDescriptor = nullptr,
// TODO: What would be a wise default value for isa?
- Handle<StructuredClass> isa = {nullptr},
+ Handle<StructuredClass> isa = nullptr,
bool transparent = false,
bool root = false)
: Descriptor(mgr, std::move(name), domain, attributesDescriptor),