Mercurial > projects > orange
diff orange/serialization/archives/XMLArchive.d @ 43:6f35fb47ca24
Added test for serializing subclasses.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 09 Aug 2011 09:26:57 +0200 |
parents | 511d1ef4e299 |
children | 1fef41162966 |
line wrap: on
line diff
--- a/orange/serialization/archives/XMLArchive.d Sun Aug 07 17:53:50 2011 +0200 +++ b/orange/serialization/archives/XMLArchive.d Tue Aug 09 09:26:57 2011 +0200 @@ -280,12 +280,10 @@ void archiveBaseClass (string type, string key, Id id) { - restore(lastElement) in { - lastElement = lastElement.element(Tags.baseTag) - .attribute(Attributes.typeAttribute, toData(type)) - .attribute(Attributes.keyAttribute, toData(key)) - .attribute(Attributes.idAttribute, toData(id)); - }; + lastElement = lastElement.element(Tags.baseTag) + .attribute(Attributes.typeAttribute, toData(type)) + .attribute(Attributes.keyAttribute, toData(key)) + .attribute(Attributes.idAttribute, toData(id)); } void archiveNull (string type, string key)