summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2003-10-26 18:52:08 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2003-10-26 18:52:08 (GMT)
commit35fe60a23748ef64341e54a8f1f096cedc8ad2fe (patch)
tree511a350854589ee7b68b551191f59c291c37baf4
parent035991e5c040dced4c30804a8fc1dcd0cf98ac1b (diff)
downloadhdf5-35fe60a23748ef64341e54a8f1f096cedc8ad2fe.zip
hdf5-35fe60a23748ef64341e54a8f1f096cedc8ad2fe.tar.gz
hdf5-35fe60a23748ef64341e54a8f1f096cedc8ad2fe.tar.bz2
[svn-r7740] Purpose:
Minor bug fix Description: Added missing "const" to the first parameter in two functions: DSetCreatPropList::set/getFillValue Platforms: Only effected C++ API SunOS 5.8 (sol) Linux 2.4 (eirene)
-rw-r--r--c++/src/H5DcreatProp.cpp4
-rw-r--r--c++/src/H5DcreatProp.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/c++/src/H5DcreatProp.cpp b/c++/src/H5DcreatProp.cpp
index ea64506..d8327c2 100644
--- a/c++/src/H5DcreatProp.cpp
+++ b/c++/src/H5DcreatProp.cpp
@@ -93,7 +93,7 @@ void DSetCreatPropList::setDeflate( int level ) const
}
// Sets a dataset fill value
-void DSetCreatPropList::setFillValue( DataType& fvalue_type, const void* value ) const
+void DSetCreatPropList::setFillValue( const DataType& fvalue_type, const void* value ) const
{
herr_t ret_value = H5Pset_fill_value( id, fvalue_type.getId(), value );
if( ret_value < 0 )
@@ -104,7 +104,7 @@ void DSetCreatPropList::setFillValue( DataType& fvalue_type, const void* value )
}
// Retrieves a dataset fill value
-void DSetCreatPropList::getFillValue( DataType& fvalue_type, void* value ) const
+void DSetCreatPropList::getFillValue( const DataType& fvalue_type, void* value ) const
{
herr_t ret_value = H5Pget_fill_value( id, fvalue_type.getId(), value );
if( ret_value < 0 )
diff --git a/c++/src/H5DcreatProp.h b/c++/src/H5DcreatProp.h
index 9fec721..931a478 100644
--- a/c++/src/H5DcreatProp.h
+++ b/c++/src/H5DcreatProp.h
@@ -49,10 +49,10 @@ class H5_DLLCPP DSetCreatPropList : public PropList {
void setDeflate( int level ) const;
// Sets a dataset fill value
- void setFillValue( DataType& fvalue_type, const void* value ) const;
+ void setFillValue( const DataType& fvalue_type, const void* value ) const;
// Retrieves a dataset fill value
- void getFillValue( DataType& fvalue_type, void* value ) const;
+ void getFillValue( const DataType& fvalue_type, void* value ) const;
// Adds a filter to the filter pipeline
void setFilter( H5Z_filter_t filter, unsigned int flags, size_t cd_nelmts, const unsigned int cd_values[] ) const;