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:
@@ -118,11 +118,11 @@ QString RimFormationNames::fileNameWoPath()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFormationNames::updateConnectedViews()
|
||||
{
|
||||
std::vector<caf::PdmObjectHandle*> usingObjs;
|
||||
this->objectsWithReferringPtrFields(usingObjs);
|
||||
for (caf::PdmObjectHandle* obj: usingObjs)
|
||||
std::vector<RimCase*> objects;
|
||||
this->objectsWithReferringPtrFieldsOfType(objects);
|
||||
|
||||
for (RimCase* caseObj : objects)
|
||||
{
|
||||
RimCase* caseObj = dynamic_cast<RimCase*>(obj);
|
||||
if (caseObj)
|
||||
{
|
||||
caseObj->updateFormationNamesData();
|
||||
|
||||
Reference in New Issue
Block a user