Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's

Regex based changes, manually verified
This commit is contained in:
Benjamin Nauck
2025-01-16 21:27:50 +01:00
parent ae15d98fd3
commit dd6aa9f3c7
166 changed files with 484 additions and 497 deletions

View File

@@ -54,16 +54,16 @@ std::vector<App::DocumentObject*> ViewProviderPipe::claimChildren()const
temp.push_back(sketch);
for(App::DocumentObject* obj : pcPipe->Sections.getValues()) {
if (obj && obj->isDerivedFrom(Part::Part2DObject::getClassTypeId()))
if (obj && obj->isDerivedFrom<Part::Part2DObject>())
temp.push_back(obj);
}
App::DocumentObject* spine = pcPipe->Spine.getValue();
if (spine && spine->isDerivedFrom(Part::Part2DObject::getClassTypeId()))
if (spine && spine->isDerivedFrom<Part::Part2DObject>())
temp.push_back(spine);
App::DocumentObject* auxspine = pcPipe->AuxillerySpine.getValue();
if (auxspine && auxspine->isDerivedFrom(Part::Part2DObject::getClassTypeId()))
if (auxspine && auxspine->isDerivedFrom<Part::Part2DObject>())
temp.push_back(auxspine);
return temp;