diff options
Diffstat (limited to 'c++/src')
-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 2c711e3..894cfef 100644 --- a/c++/src/H5Object.cpp +++ b/c++/src/H5Object.cpp @@ -277,11 +277,9 @@ void H5Object::removeAttr( const H5std_string& name ) const //-------------------------------------------------------------------------- void H5Object::renameAttr(const char* oldname, const char* newname) const { - herr_t ret_value = H5Arename(id, oldname, newname); + herr_t ret_value = H5Arename2(id, ".", oldname, newname, H5P_DEFAULT); if (ret_value < 0) - { - throw AttributeIException(inMemFunc("renameAttr"), "H5Arename failed"); - } + throw AttributeIException(inMemFunc("renameAttr"), "H5Arename2 failed"); } //-------------------------------------------------------------------------- |