Use the isDerived<>() Template function

This commit is contained in:
André Althaus
2024-02-28 16:39:31 +01:00
parent 3936f49ee2
commit bd0e555e4e
4 changed files with 6 additions and 6 deletions

View File

@@ -78,7 +78,7 @@ void TaskMirroredParameters::setupParameterUI(QWidget* widget)
ui->comboPlane->setEnabled(true);
App::DocumentObject* sketch = getSketchObject();
if (sketch && sketch->isDerivedFrom(Part::Part2DObject::getClassTypeId())) {
if (sketch && sketch->isDerivedFrom<Part::Part2DObject>()) {
this->fillPlanesCombo(planeLinks, static_cast<Part::Part2DObject*>(sketch));
}
else {