Remove null pointers from vector of color legend objects

This commit is contained in:
Magne Sjaastad committed 2020-09-29 09:00:47 -07:00
1 parent ec40673119
commit 25ee7a1610
2 files changed
+5

No files matched your search

@@ -2215,6 +2215,8 @@ std::vector<RimLegendConfig*> RimEclipseView::legendConfigs() const
}
}
absLegends.erase( std::remove( absLegends.begin(), absLegends.end(), nullptr ), absLegends.end() );
return absLegends;
}
@@ -649,6 +649,9 @@ std::vector<RimLegendConfig*> RimGeoMechView::legendConfigs() const
}
}
absLegendConfigs.erase( std::remove( absLegendConfigs.begin(), absLegendConfigs.end(), nullptr ),
absLegendConfigs.end() );
return absLegendConfigs;
}