[PD] App: remove superfluous nullptr checks
- also Body: get rid of some nasty single-letter variables
This commit is contained in:
@@ -81,7 +81,7 @@ const std::list<gp_Trsf> LinearPattern::getTransformations(const std::vector<App
|
||||
bool reversed = Reversed.getValue();
|
||||
|
||||
App::DocumentObject* refObject = Direction.getValue();
|
||||
if (refObject == nullptr)
|
||||
if (!refObject)
|
||||
throw Base::ValueError("No direction reference specified");
|
||||
|
||||
std::vector<std::string> subStrings = Direction.getSubValues();
|
||||
|
||||
Reference in New Issue
Block a user