Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tidy: Remove extraneous 'if' checks before calling delete.
According to the c++ reference, deleting a null pointer has no effect, so non-null checks are unnecessary. https://clang.llvm.org/extra/clang-tidy/checks/readability-delete-null-pointer.html
- Loading branch information
1 parent
b32676f
commit 4ad8b31
Showing
4 changed files
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters