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