From a59795b546a5a9555375f0b464ff26e236d864eb Mon Sep 17 00:00:00 2001 From: Binh-Minh Ribler Date: Thu, 16 Aug 2001 08:06:37 -0500 Subject: [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) --- c++/src/H5Attribute.cpp | 2 +- c++/src/H5Attribute.h | 2 +- 2 files changed, 2 insertions(+), 2 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 ) diff --git a/c++/src/H5Attribute.h b/c++/src/H5Attribute.h index b4ad208..9f1435b 100644 --- a/c++/src/H5Attribute.h +++ b/c++/src/H5Attribute.h @@ -9,7 +9,7 @@ namespace H5 { class Attribute : public AbstractDs { public: // Writes data to this attribute. - void write(const DataType& mem_type, void *buf ) const; + void write(const DataType& mem_type, const void *buf ) const; // Reads data from this attribute. void read( const DataType& mem_type, void *buf ) const; -- cgit v0.12