diff options
Diffstat (limited to 'c++/src/H5Object.cpp')
-rw-r--r-- | c++/src/H5Object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5Object.cpp b/c++/src/H5Object.cpp index e298153..cae9155 100644 --- a/c++/src/H5Object.cpp +++ b/c++/src/H5Object.cpp @@ -139,7 +139,7 @@ Attribute H5Object::createAttribute( const H5std_string& name, const DataType& d //-------------------------------------------------------------------------- Attribute H5Object::openAttribute( const char* name ) const { - hid_t attr_id = H5Aopen_name( id, name ); + hid_t attr_id = H5Aopen( id, ".", name, H5P_DEFAULT, H5P_DEFAULT ); if( attr_id > 0 ) { Attribute attr( attr_id ); @@ -147,7 +147,7 @@ Attribute H5Object::openAttribute( const char* name ) const } else { - throw AttributeIException(inMemFunc("openAttribute"), "H5Aopen_name failed"); + throw AttributeIException(inMemFunc("openAttribute"), "H5Aopen failed"); } } |