diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-12-21 23:52:51 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2014-12-21 23:52:51 +0100 |
commit | 01ce9e24cc5953f44a7dd9a3d93347835e26030d (patch) | |
tree | 617a437d6d3e934c3f7ae9dba28260dabc70bcc2 /test/core/model/TestDomain.hpp | |
parent | 1a924c27789483ac43134d6fdedd80fa24a9d0b9 (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 'test/core/model/TestDomain.hpp')
-rw-r--r-- | test/core/model/TestDomain.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/model/TestDomain.hpp b/test/core/model/TestDomain.hpp index dd58524..d4421a4 100644 --- a/test/core/model/TestDomain.hpp +++ b/test/core/model/TestDomain.hpp @@ -36,7 +36,8 @@ static Rooted<Typesystem> constructTypeSystem(Manager &mgr) Rooted<StringType> string{new StringType(mgr, sys)}; sys->addType(string); Rooted<StructType> string_struct{new StructType( - mgr, "text", sys, {{"content", "", false, sys->acquire(string)}})}; + mgr, "text", sys, {new StructType::AttributeDescriptor( + mgr, "content", "", false, string)})}; sys->addType(string_struct); return sys; |