Skip to content

Commit 00498ce

Browse files
damienbarkerjenkins
authored andcommitted
QPR-12074 change default in fromXML
1 parent 97f6e28 commit 00498ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OREData/ored/configuration/equitycurveconfig.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ void EquityCurveConfig::fromXML(XMLNode* node) {
7373
divInterpVariable_ = "Zero";
7474
divInterpMethod_ = divInterpVariable_ == "Zero" ? "Linear" : "LogLinear";
7575
}
76-
dividendExtrapolation_ = XMLUtils::getChildValueAsBool(node, "DividendExtrapolation");
77-
extrapolation_ = XMLUtils::getChildValueAsBool(node, "Extrapolation"); // defaults to true
76+
dividendExtrapolation_ = XMLUtils::getChildValueAsBool(node, "DividendExtrapolation", false, false);
77+
extrapolation_ = XMLUtils::getChildValueAsBool(node, "Extrapolation", false, false);
7878

7979
if (type_ == Type::NoDividends) {
8080
QL_REQUIRE(fwdQuotes_.size() == 0,

0 commit comments

Comments
 (0)