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:
@@ -767,17 +767,7 @@ double RimFractureTemplate::computeFractureWidth(const RimFracture* fractureInst
|
||||
std::vector<RimFracture*> RimFractureTemplate::fracturesUsingThisTemplate() const
|
||||
{
|
||||
std::vector<RimFracture*> fractures;
|
||||
|
||||
std::vector<caf::PdmObjectHandle*> objects;
|
||||
this->objectsWithReferringPtrFields(objects);
|
||||
for (auto object : objects)
|
||||
{
|
||||
auto f = dynamic_cast<RimFracture*>(object);
|
||||
if (f)
|
||||
{
|
||||
fractures.push_back(f);
|
||||
}
|
||||
}
|
||||
this->objectsWithReferringPtrFieldsOfType(fractures);
|
||||
|
||||
return fractures;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user