Mercurial > hg > svcore
comparison base/Event.h @ 1682:4ca784e5033e single-point
Restore always-on export of label even if empty - backward compatibility makes testing easier
author | Chris Cannam |
---|---|
date | Wed, 03 Apr 2019 16:03:18 +0100 |
parents | 69ab62d378bf |
children | 9ab3be243397 |
comparison
equal
deleted
inserted
replaced
1681:c170b8d0433c | 1682:4ca784e5033e |
---|---|
285 } | 285 } |
286 if (m_haveReferenceFrame) { | 286 if (m_haveReferenceFrame) { |
287 stream << QString("referenceFrame=\"%1\" ") | 287 stream << QString("referenceFrame=\"%1\" ") |
288 .arg(m_referenceFrame); | 288 .arg(m_referenceFrame); |
289 } | 289 } |
290 if (m_label != "") { | 290 |
291 stream << QString("label=\"%1\" ") | 291 stream << QString("label=\"%1\" ") |
292 .arg(XmlExportable::encodeEntities(m_label)); | 292 .arg(XmlExportable::encodeEntities(m_label)); |
293 } | 293 |
294 if (m_uri != QString()) { | 294 if (m_uri != QString()) { |
295 stream << QString("%1=\"%2\" ") | 295 stream << QString("%1=\"%2\" ") |
296 .arg(opts.uriAttributeName) | 296 .arg(opts.uriAttributeName) |
297 .arg(XmlExportable::encodeEntities(m_uri)); | 297 .arg(XmlExportable::encodeEntities(m_uri)); |
298 } | 298 } |