mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3214 Use template function to get referencing objects of specified type
This commit is contained in:
@@ -546,11 +546,10 @@ void RimEclipseView::createDisplayModel()
|
||||
updateLegends();
|
||||
}
|
||||
|
||||
std::vector<caf::PdmFieldHandle*> objects;
|
||||
this->referringPtrFields(objects);
|
||||
for (auto object : objects)
|
||||
std::vector<RimFlowCharacteristicsPlot*> objects;
|
||||
this->objectsWithReferringPtrFieldsOfType(objects);
|
||||
for (auto plot : objects)
|
||||
{
|
||||
RimFlowCharacteristicsPlot* plot = dynamic_cast<RimFlowCharacteristicsPlot*>(object->ownerObject());
|
||||
if (plot != nullptr)
|
||||
{
|
||||
plot->viewGeometryUpdated();
|
||||
|
||||
Reference in New Issue
Block a user