Applied clang-tidy readability-delete-null-pointer fixes (#430)

delete nullptr is well-defined, does not need check.

Manually fixed indentation after automatic changes.
This commit is contained in:
Sean McBride
2021-03-22 13:51:18 -04:00
committed by GitHub
parent 60e14b826a
commit 38b9474af0
16 changed files with 38 additions and 70 deletions

View File

@@ -70,8 +70,7 @@ LinkAccPropList::getConstant()
void
LinkAccPropList::deleteConstants()
{
if (DEFAULT_ != 0)
delete DEFAULT_;
delete DEFAULT_;
}
//--------------------------------------------------------------------------