Mercurial > hg > svcore
diff data/model/Model.cpp @ 1677:f97d64b8674f single-point
Make XmlExportables store their export IDs and always obtain a new one, avoiding reuse when an object is allocated at the same heap location as a previous one. This makes the ID system stable enough to be used in the export tests.
author | Chris Cannam |
---|---|
date | Thu, 28 Mar 2019 11:55:02 +0000 |
parents | dfcd05e8bd2f |
children | 187c76c40c6f |
line wrap: on
line diff
--- a/data/model/Model.cpp Thu Mar 28 10:39:24 2019 +0000 +++ b/data/model/Model.cpp Thu Mar 28 11:55:02 2019 +0000 @@ -202,7 +202,7 @@ { stream << indent; stream << QString("<model id=\"%1\" name=\"%2\" sampleRate=\"%3\" start=\"%4\" end=\"%5\" %6/>\n") - .arg(getObjectExportId(this)) + .arg(getExportId()) .arg(encodeEntities(objectName())) .arg(getSampleRate()) .arg(getStartFrame())