Base: Use explicit pointer syntax for freecad_cast (#20694)

* Base: Use explicit pointer syntax for freecad_cast

This aligns our custom cast with other casts

* All: Use explicit pointer syntax for freecad_cast
This commit is contained in:
Kacper Donat
2025-04-11 16:11:33 +02:00
committed by GitHub
parent 02bb799209
commit 77e40b9747
73 changed files with 305 additions and 304 deletions

View File

@@ -166,7 +166,7 @@ App::ElementNamePair Feature::getElementName(const char* name,
// This function is overridden to provide higher level shape topo names that
// are generated on demand, e.g. Wire, Shell, Solid, etc.
auto prop = freecad_cast<PropertyPartShape>(getPropertyOfGeometry());
auto prop = freecad_cast<PropertyPartShape*>(getPropertyOfGeometry());
if (!prop) {
return App::GeoFeature::getElementName(name, type);
}
@@ -1686,7 +1686,7 @@ bool Feature::isElementMappingDisabled(App::PropertyContainer* container)
// if (prop && prop->getValue()) {
// return true;
// }
// if (auto obj = freecad_cast<App::DocumentObject>(container)) {
// if (auto obj = freecad_cast<App::DocumentObject*>(container)) {
// if (auto doc = obj->getDocument()) {
// if (auto prop = propDisableMapping(doc, /*forced*/ false)) {
// return prop->getValue();