diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2021-06-23 03:42:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 03:42:02 (GMT) |
commit | cc88fe8fafa0a522ba583bf75b2fe9a15688db9c (patch) | |
tree | 322f12e7ebe3cd900ec65486466991ebdf48ea94 /c++/src/H5PropList.cpp | |
parent | 3d4481c2920b7b983a8d791a266cd2bc9c96e846 (diff) | |
download | hdf5-cc88fe8fafa0a522ba583bf75b2fe9a15688db9c.zip hdf5-cc88fe8fafa0a522ba583bf75b2fe9a15688db9c.tar.gz hdf5-cc88fe8fafa0a522ba583bf75b2fe9a15688db9c.tar.bz2 |
Removes C++ dependency on H5private.h (#774)
* Removes C++ dependency on H5private.h
Most C API calls have been removed, aside from a few uses of free,
where we just dropped the 'HD'. A couple of H5_ATTR_UNUSED macros
were also replaced with (void) statements.
* Committing clang-format changes
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'c++/src/H5PropList.cpp')
-rw-r--r-- | c++/src/H5PropList.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/c++/src/H5PropList.cpp b/c++/src/H5PropList.cpp index 46e4931..7dca716 100644 --- a/c++/src/H5PropList.cpp +++ b/c++/src/H5PropList.cpp @@ -15,7 +15,6 @@ #include <string> -#include "H5private.h" // for HDmemset #include "H5Include.h" #include "H5Exception.h" #include "H5IdComponent.h" @@ -458,8 +457,7 @@ PropList::getProperty(const char *name) const size_t size = getPropSize(name); // Allocate buffer then get the property - char *prop_strg_C = new char[size + 1]; // temporary C-string for C API - HDmemset(prop_strg_C, 0, size + 1); // clear buffer + char *prop_strg_C = new char[size + 1](); herr_t ret_value = H5Pget(id, name, prop_strg_C); // call C API |