App: Use freecad_cast whenever possible
This commit is contained in:
committed by
Benjamin Nauck
parent
019a25ad75
commit
7accf81bbe
@@ -180,7 +180,7 @@ public:
|
||||
/// find a property by its name, dynamic cased to specified type
|
||||
template<typename T>
|
||||
T* getPropertyByName(const char* name) const {
|
||||
return dynamic_cast<T*>(this->getPropertyByName(name));
|
||||
return freecad_cast<T*>(this->getPropertyByName(name));
|
||||
}
|
||||
/// get the name of a property
|
||||
const char* getPropertyName(const Property* prop) const override;
|
||||
|
||||
Reference in New Issue
Block a user