Mercurial > hg > svcore
comparison data/model/AlignmentModel.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 | c7bf655955ae |
children | e73baeead27f |
comparison
equal
deleted
inserted
replaced
1676:3b51df7695a4 | 1677:f97d64b8674f |
---|---|
415 | 415 |
416 m_path->toXml(stream, indent, ""); | 416 m_path->toXml(stream, indent, ""); |
417 | 417 |
418 Model::toXml(stream, indent, | 418 Model::toXml(stream, indent, |
419 QString("type=\"alignment\" reference=\"%1\" aligned=\"%2\" path=\"%3\" %4") | 419 QString("type=\"alignment\" reference=\"%1\" aligned=\"%2\" path=\"%3\" %4") |
420 .arg(getObjectExportId(m_reference)) | 420 .arg(m_reference->getExportId()) |
421 .arg(getObjectExportId(m_aligned)) | 421 .arg(m_aligned->getExportId()) |
422 .arg(getObjectExportId(m_path)) | 422 .arg(m_path->getExportId()) |
423 .arg(extraAttributes)); | 423 .arg(extraAttributes)); |
424 } | 424 } |
425 | 425 |
426 | 426 |