Core: modernize type checking

This commit is contained in:
Florian Foinant-Willig
2023-10-15 21:38:48 +02:00
parent 6d8fb68f3b
commit 773c701eec
31 changed files with 110 additions and 110 deletions

View File

@@ -998,7 +998,7 @@ PropertyPlacementLink::~PropertyPlacementLink() = default;
App::Placement * PropertyPlacementLink::getPlacementObject() const
{
if (_pcLink->getTypeId().isDerivedFrom(App::Placement::getClassTypeId()))
if (_pcLink->isDerivedFrom<App::Placement>())
return dynamic_cast<App::Placement*>(_pcLink);
else
return nullptr;