diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-09-27 22:42:20 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-09-27 22:42:20 (GMT) |
commit | c63f9b42ec89ff649f4f086e2f422fa01d9967b1 (patch) | |
tree | 563d292a805c97be9136799016215ea99af39452 /c++/src/H5Object.cpp | |
parent | a9a10b0a055824f676cf426fcd928772aeaa99c8 (diff) | |
download | hdf5-c63f9b42ec89ff649f4f086e2f422fa01d9967b1.zip hdf5-c63f9b42ec89ff649f4f086e2f422fa01d9967b1.tar.gz hdf5-c63f9b42ec89ff649f4f086e2f422fa01d9967b1.tar.bz2 |
[svn-r14162] Description:
Make H5Adelete versioned and switch internal library use to H5Adelete2.
Add regression test for H5Adelete1
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
AIX/32 5.3 (copper) w/FORTRAN, w/parallel, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Diffstat (limited to 'c++/src/H5Object.cpp')
-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"); } //-------------------------------------------------------------------------- |