[PD] App: remove superfluous nullptr checks
- also Body: get rid of some nasty single-letter variables
This commit is contained in:
@@ -197,7 +197,7 @@ bool Feature::isDatum(const App::DocumentObject* feature)
|
||||
gp_Pln Feature::makePlnFromPlane(const App::DocumentObject* obj)
|
||||
{
|
||||
const App::GeoFeature* plane = static_cast<const App::GeoFeature*>(obj);
|
||||
if (plane == nullptr)
|
||||
if (!plane)
|
||||
throw Base::ValueError("Feature: Null object");
|
||||
|
||||
Base::Vector3d pos = plane->Placement.getValue().getPosition();
|
||||
|
||||
Reference in New Issue
Block a user