summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataSpace.cpp
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-04-07 14:23:35 (GMT)
committerGitHub <noreply@github.com>2022-04-07 14:23:35 (GMT)
commit13d852d89ede307314adbfaa036fe670dfa75554 (patch)
treef3e66489a150de1fd493365cf5cf535963679e5d /c++/src/H5DataSpace.cpp
parent541bc15452f71f3eae7471fdecbe7994a7f138e2 (diff)
downloadhdf5-13d852d89ede307314adbfaa036fe670dfa75554.zip
hdf5-13d852d89ede307314adbfaa036fe670dfa75554.tar.gz
hdf5-13d852d89ede307314adbfaa036fe670dfa75554.tar.bz2
1.12: Brings C++ wrappers in line with develop, minus C++11 bits (#1604)
Diffstat (limited to 'c++/src/H5DataSpace.cpp')
-rw-r--r--c++/src/H5DataSpace.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/c++/src/H5DataSpace.cpp b/c++/src/H5DataSpace.cpp
index 0485530..5dfeb81 100644
--- a/c++/src/H5DataSpace.cpp
+++ b/c++/src/H5DataSpace.cpp
@@ -69,8 +69,7 @@ DataSpace::getConstant()
void
DataSpace::deleteConstants()
{
- if (ALL_ != 0)
- delete ALL_;
+ delete ALL_;
}
//--------------------------------------------------------------------------
@@ -631,7 +630,7 @@ DataSpace::getId() const
///\exception H5::IdComponentException when the attempt to close the HDF5
/// object fails
// Description:
-// The underlaying reference counting in the C library ensures
+// The underlying reference counting in the C library ensures
// that the current valid id of this object is properly closed.
// Then the object's id is reset to the new id.
// Programmer Binh-Minh Ribler - 2000