comparison base/EventSeries.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 69ab62d378bf
children 0d89abd631ac
comparison
equal deleted inserted replaced
1676:3b51df7695a4 1677:f97d64b8674f
493 QString indent, 493 QString indent,
494 QString extraAttributes, 494 QString extraAttributes,
495 Event::ExportNameOptions options) const 495 Event::ExportNameOptions options) const
496 { 496 {
497 out << indent << QString("<dataset id=\"%1\" %2>\n") 497 out << indent << QString("<dataset id=\"%1\" %2>\n")
498 .arg(getObjectExportId(this)) 498 .arg(getExportId())
499 .arg(extraAttributes); 499 .arg(extraAttributes);
500 500
501 for (const auto &p: m_events) { 501 for (const auto &p: m_events) {
502 p.toXml(out, indent + " ", "", options); 502 p.toXml(out, indent + " ", "", options);
503 } 503 }