@@ -278,11 +278,11 @@ void ParSensitivityInstrumentBuilder::createParInstruments(
278278 " ParSensitivityInstrumentBuilder::createParInstruments(): conventions not found for ccy "
279279 << ccy << " and instrument type " << instType);
280280 QuantLib::ext::shared_ptr<Convention> convention = conventions->get (conventionsMap[instType]);
281- makeInstrument (instType, asof, simMarket, ccy,
282- data. otherCurrency . empty () ? simMarketParams-> baseCcy () : data. otherCurrency ,
283- std::string (), curveName, equityForecastCurveName, term, convention, singleCurve ,
284- parHelperDependencies[key], instruments. removeTodaysFixingIndices_ ,
285- data.discountCurve , marketConfiguration);
281+ ret = makeInstrument (
282+ instType, asof, simMarket, ccy ,
283+ data. otherCurrency . empty () ? simMarketParams-> baseCcy () : data. otherCurrency , std::string (),
284+ curveName, equityForecastCurveName, term, convention, singleCurve, parHelperDependencies[key],
285+ instruments. removeTodaysFixingIndices_ , data.discountCurve , marketConfiguration);
286286 recognised = ret.first != nullptr ;
287287 } catch (const std::exception& e) {
288288 skipped = true ;
@@ -350,11 +350,12 @@ void ParSensitivityInstrumentBuilder::createParInstruments(
350350 " ParSensitivityInstrumentBuilder::createParInstruments(): conventions not found for ccy "
351351 << ccy << " and instrument type " << instType);
352352 QuantLib::ext::shared_ptr<Convention> convention = conventions->get (conventionsMap[instType]);
353- makeInstrument (instType, asof, simMarket, ccy,
354- data.otherCurrency .empty () ? simMarketParams->baseCcy () : data.otherCurrency ,
355- indexName, yieldCurveName, equityForecastCurveName, term, convention, singleCurve,
356- parHelperDependencies[key], instruments.removeTodaysFixingIndices_ ,
357- data.discountCurve , marketConfiguration);
353+ ret =
354+ makeInstrument (instType, asof, simMarket, ccy,
355+ data.otherCurrency .empty () ? simMarketParams->baseCcy () : data.otherCurrency ,
356+ indexName, yieldCurveName, equityForecastCurveName, term, convention,
357+ singleCurve, parHelperDependencies[key], instruments.removeTodaysFixingIndices_ ,
358+ data.discountCurve , marketConfiguration);
358359 recognised = ret.first != nullptr ;
359360 } catch (const std::exception& e) {
360361 skipped = true ;
0 commit comments