diff options
author | Sean McBride <sean@rogue-research.com> | 2021-03-22 17:51:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 17:51:18 (GMT) |
commit | 38b9474af03909d49cc928c71c190e4f26a15b5c (patch) | |
tree | b8eb735f44b4e246816a4daec9714d5c4d89675e /c++/src/H5FaccProp.cpp | |
parent | 60e14b826a22452934f7057196c1ce4d0054d97a (diff) | |
download | hdf5-38b9474af03909d49cc928c71c190e4f26a15b5c.zip hdf5-38b9474af03909d49cc928c71c190e4f26a15b5c.tar.gz hdf5-38b9474af03909d49cc928c71c190e4f26a15b5c.tar.bz2 |
Applied clang-tidy readability-delete-null-pointer fixes (#430)
delete nullptr is well-defined, does not need check.
Manually fixed indentation after automatic changes.
Diffstat (limited to 'c++/src/H5FaccProp.cpp')
-rw-r--r-- | c++/src/H5FaccProp.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/c++/src/H5FaccProp.cpp b/c++/src/H5FaccProp.cpp index 926ac2f..a79ada3 100644 --- a/c++/src/H5FaccProp.cpp +++ b/c++/src/H5FaccProp.cpp @@ -76,8 +76,7 @@ FileAccPropList::getConstant() void FileAccPropList::deleteConstants() { - if (DEFAULT_ != 0) - delete DEFAULT_; + delete DEFAULT_; } //-------------------------------------------------------------------------- |