diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-12-25 01:58:30 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-12-25 01:58:30 (GMT) |
commit | c81156f8f3ee9d2745f495555cb81730d1880bac (patch) | |
tree | 9338dee4fc9489cb08f6622e4dd60f1faadc716f | |
parent | 49260b3b89ac342a6fab78fb6e3945bd50af03a4 (diff) | |
download | hdf5-c81156f8f3ee9d2745f495555cb81730d1880bac.zip hdf5-c81156f8f3ee9d2745f495555cb81730d1880bac.tar.gz hdf5-c81156f8f3ee9d2745f495555cb81730d1880bac.tar.bz2 |
[svn-r11835] Purpose: Fixed typos
Description:
Made typos in the previous check-in for call to H5Awrite. Fixed.
Platforms tested:
Linux 2.4 (heping)
-rw-r--r-- | c++/src/H5Attribute.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/c++/src/H5Attribute.cpp b/c++/src/H5Attribute.cpp index 1117cfa..9527728 100644 --- a/c++/src/H5Attribute.cpp +++ b/c++/src/H5Attribute.cpp @@ -80,8 +80,7 @@ Attribute::Attribute(const hid_t existing_id) : AbstractDs(existing_id) {} //-------------------------------------------------------------------------- void Attribute::write( const DataType& mem_type, const void *buf ) const { -cerr << "Attribute::write: mem_type.id = " << mem_type.getId() << endl; - herr_t ret_value = H5Awrite( id, mem_type.getId(), &buf ); + herr_t ret_value = H5Awrite( id, mem_type.getId(), buf ); if( ret_value < 0 ) { throw AttributeIException("Attribute::write", "H5Awrite failed"); @@ -140,7 +139,7 @@ void Attribute::read( const DataType& mem_type, string& strg ) const { size_t size = mem_type.getSize(); char* strg_C = new char[size+1]; // temporary C-string for C API - herr_t ret_value = H5Aread( id, mem_type.getId(), strg_C ); + herr_t ret_value = H5Aread( id, mem_type.getId(), &strg_C ); if( ret_value < 0 ) { throw AttributeIException("Attribute::read", "H5Aread failed"); |