PartDesign: Remove redundant comparision with null pointer

This commit is contained in:
marioalexis
2022-05-24 20:59:58 -03:00
committed by Uwe
parent d492ac3083
commit 9251480ddb
2 changed files with 4 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ bool ViewProviderMultiTransform::onDelete(const std::vector<std::string> &svec)
// if the multitransform object was deleted the transformed features must be deleted, too
for (std::vector<App::DocumentObject*>::const_iterator it = transformFeatures.begin(); it != transformFeatures.end(); ++it)
{
if ((*it) != NULL)
if (*it)
Gui::Command::doCommand(
Gui::Command::Doc,"App.getDocument('%s').removeObject(\"%s\")", \
(*it)->getDocument()->getName(), (*it)->getNameInDocument());