Skip to content

Commit f73100b

Browse files
pcaspersjenkins
authored andcommitted
QPR-11772 write out conventions only if non-empty
1 parent 3649ef2 commit f73100b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

OREData/ored/configuration/yieldcurveconfig.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,8 @@ XMLNode* YieldCurveSegment::toXML(XMLDocument& doc) {
478478
XMLUtils::appendNode(node, quotesNode);
479479
}
480480

481-
XMLUtils::addChild(doc, node, "Conventions", conventionsID_);
481+
if (!conventionsID_.empty())
482+
XMLUtils::addChild(doc, node, "Conventions", conventionsID_);
482483
XMLUtils::addChild(doc, node, "PillarChoice", ore::data::to_string(pillarChoice_));
483484
return node;
484485
}

0 commit comments

Comments
 (0)