From f8dc128452c75489eac89636a301a1efe0189db1 Mon Sep 17 00:00:00 2001 From: Florian Foinant-Willig Date: Sun, 15 Oct 2023 21:38:54 +0200 Subject: [PATCH] ReverseEngineering: modernize type checking --- src/Mod/ReverseEngineering/Gui/Command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/ReverseEngineering/Gui/Command.cpp b/src/Mod/ReverseEngineering/Gui/Command.cpp index b4cacdcd97..0e92fe819f 100644 --- a/src/Mod/ReverseEngineering/Gui/Command.cpp +++ b/src/Mod/ReverseEngineering/Gui/Command.cpp @@ -120,7 +120,7 @@ void CmdApproxPlane::activated(int) std::vector List; it->getPropertyList(List); for (const auto& jt : List) { - if (jt->getTypeId().isDerivedFrom(App::PropertyComplexGeoData::getClassTypeId())) { + if (jt->isDerivedFrom()) { const Data::ComplexGeoData* data = static_cast(jt)->getComplexData(); if (data) {