summaryrefslogtreecommitdiffstats
path: root/c++/test/tvlstr.cpp
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2021-03-22 17:51:18 (GMT)
committerGitHub <noreply@github.com>2021-03-22 17:51:18 (GMT)
commit38b9474af03909d49cc928c71c190e4f26a15b5c (patch)
treeb8eb735f44b4e246816a4daec9714d5c4d89675e /c++/test/tvlstr.cpp
parent60e14b826a22452934f7057196c1ce4d0054d97a (diff)
downloadhdf5-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++/test/tvlstr.cpp')
-rw-r--r--c++/test/tvlstr.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/c++/test/tvlstr.cpp b/c++/test/tvlstr.cpp
index b371518..9c0f78a 100644
--- a/c++/test/tvlstr.cpp
+++ b/c++/test/tvlstr.cpp
@@ -313,8 +313,7 @@ test_vlstring_array_dataset()
issue_fail_msg("test_vlstring_array_dataset()", __LINE__, __FILE__, E.getCDetailMsg());
}
- if (file1)
- delete file1;
+ delete file1;
} // end test_vlstring_array_dataset()
/*-------------------------------------------------------------------------
@@ -527,8 +526,7 @@ test_vlstring_type()
issue_fail_msg("test_vlstring_type()", __LINE__, __FILE__, E.getCDetailMsg());
}
- if (file1)
- delete file1;
+ delete file1;
} // end test_vlstring_type()
/*-------------------------------------------------------------------------