summaryrefslogtreecommitdiffstats
path: root/c++/src/H5IdComponent.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2000-12-12 04:40:09 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2000-12-12 04:40:09 (GMT)
commit84fadb9f74741dc53a07a8780d6d1f03c728e213 (patch)
tree572178cd402f07c6cf70eeff733fe97895683038 /c++/src/H5IdComponent.cpp
parent3dcc29ec41d6dad568ac15cfebbbfe163f314a5a (diff)
downloadhdf5-84fadb9f74741dc53a07a8780d6d1f03c728e213.zip
hdf5-84fadb9f74741dc53a07a8780d6d1f03c728e213.tar.gz
hdf5-84fadb9f74741dc53a07a8780d6d1f03c728e213.tar.bz2
[svn-r3114] Purpose: Fix
Description: Dec CC compiler doesn't support some new c++ features. Some typos caused compilation erros on Dec Alpha. Solution: - Added macro BOOL_NOTDEFINED to define bool type on Dec Alpha (gondolin) since its compiler doesn't support bool. - Added macro NO_STATIC_CAST to prevent the use of the new c++ feature static_cast since Dec CC compiler doesn't support. - Added const to parameters of some functions to match the functions' declaration and definition. Typos errors and Dec CC complained. Platform: Solaris (arabica). Also tried to build on Dec Alpha but still not linked due to some missing compiler flags; its compilation went fine though.
Diffstat (limited to 'c++/src/H5IdComponent.cpp')
-rw-r--r--c++/src/H5IdComponent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5IdComponent.cpp b/c++/src/H5IdComponent.cpp
index 2b7bff8..fbbd80e 100644
--- a/c++/src/H5IdComponent.cpp
+++ b/c++/src/H5IdComponent.cpp
@@ -20,7 +20,7 @@ IdComponent::IdComponent() : id( 0 )
// Constructor that takes an HDF5 object id. It creates an instance
// of IdComponent to hold the HDF5 id
-IdComponent::IdComponent( hid_t h5_id ) : id( h5_id )
+IdComponent::IdComponent( const hid_t h5_id ) : id( h5_id )
{
// starts counting object references
ref_count = new RefCounter;
@@ -82,7 +82,7 @@ IdComponent& IdComponent::operator=( const IdComponent& rhs )
its identifier, its reference counter will be deleted. A new
reference counter is created for the new HDF5 object id.
*/
-void IdComponent::setId( hid_t new_id )
+void IdComponent::setId( const hid_t new_id )
{
// reset the identifier of this object, call appropriate H5Xclose
resetIdComponent( this );