summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Attribute.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2001-08-16 13:06:37 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2001-08-16 13:06:37 (GMT)
commita59795b546a5a9555375f0b464ff26e236d864eb (patch)
tree6b8b397af2d9e3ec3263bc2cc125a87e67f82199 /c++/src/H5Attribute.cpp
parent34b8cca115221015d5fae865f89c53603302d025 (diff)
downloadhdf5-a59795b546a5a9555375f0b464ff26e236d864eb.zip
hdf5-a59795b546a5a9555375f0b464ff26e236d864eb.tar.gz
hdf5-a59795b546a5a9555375f0b464ff26e236d864eb.tar.bz2
[svn-r4366] Purpose:
Code cleanup Description: Changed prototype for the buffer in Attribute::write from "void *" to "const void *" Platforms tested: FreeBSD 4.4 (hawkwind) SunOS 5.7 (arabica) Linux 6.2 (eirene)
Diffstat (limited to 'c++/src/H5Attribute.cpp')
-rw-r--r--c++/src/H5Attribute.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5Attribute.cpp b/c++/src/H5Attribute.cpp
index de184a5..86f1377 100644
--- a/c++/src/H5Attribute.cpp
+++ b/c++/src/H5Attribute.cpp
@@ -24,7 +24,7 @@ Attribute::Attribute( const Attribute& original ) : AbstractDs( original ) {}
Attribute::Attribute( const hid_t attr_id ) : AbstractDs( attr_id ) {}
// Writes data to this attribute.
-void Attribute::write( const DataType& mem_type, void *buf ) const
+void Attribute::write( const DataType& mem_type, const void *buf ) const
{
herr_t ret_value = H5Awrite( id, mem_type.getId(), buf );
if( ret_value < 0 )