File tree Expand file tree Collapse file tree
OREData/ored/configuration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -259,13 +259,12 @@ std::set<string> CurveConfigurations::quotes() const {
259259std::set<string> CurveConfigurations::conventions (const boost::shared_ptr<TodaysMarketParameters> todaysMarketParams,
260260 const set<string>& configurations) const {
261261 set<string> conventions = minimalCurveConfig (todaysMarketParams, configurations)->conventions ();
262- // Checking for any swapIndices
263262
263+ // Checking for any swapIndices
264264 if (todaysMarketParams->hasMarketObject (MarketObject::SwapIndexCurve)) {
265- auto mapping = todaysMarketParams->mapping (MarketObject::SwapIndexCurve, Market::defaultConfiguration);
266-
267- for (auto m : mapping)
265+ for (const auto & m : todaysMarketParams->mapping (MarketObject::SwapIndexCurve, Market::defaultConfiguration)) {
268266 conventions.insert (m.first );
267+ }
269268 }
270269
271270 return conventions;
@@ -279,7 +278,8 @@ std::set<string> CurveConfigurations::conventions() const {
279278 auto ycc = boost::dynamic_pointer_cast<YieldCurveConfig>(c.second );
280279 if (ycc) {
281280 for (auto & s : ycc->curveSegments ())
282- conventions.insert (s->conventionsID ());
281+ if (!s->conventionsID ().empty ())
282+ conventions.insert (s->conventionsID ());
283283 }
284284 }
285285 }
You can’t perform that action at this time.
0 commit comments