diff options
Diffstat (limited to 'c++')
-rw-r--r-- | c++/src/H5Object.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/c++/src/H5Object.cpp b/c++/src/H5Object.cpp index 790ded9..2c711e3 100644 --- a/c++/src/H5Object.cpp +++ b/c++/src/H5Object.cpp @@ -250,11 +250,9 @@ int H5Object::getNumAttrs() const //-------------------------------------------------------------------------- void H5Object::removeAttr( const char* name ) const { - herr_t ret_value = H5Adelete( id, name ); + herr_t ret_value = H5Adelete2(id, ".", name, H5P_DEFAULT); if( ret_value < 0 ) - { - throw AttributeIException(inMemFunc("removeAttr"), "H5Adelete failed"); - } + throw AttributeIException(inMemFunc("removeAttr"), "H5Adelete2 failed"); } //-------------------------------------------------------------------------- |