summaryrefslogtreecommitdiffstats
path: root/c++/src/H5IdComponent.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2000-12-13 02:15:31 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2000-12-13 02:15:31 (GMT)
commit9cbeb3c53f0d34d8e2b7cca0fbaab8ec55179066 (patch)
treebdabb7f53c51b873b76b0d55e4548af592fb357d /c++/src/H5IdComponent.cpp
parentb72e8ae6b9d9476e8060a9a8f0e0c8058db2591b (diff)
downloadhdf5-9cbeb3c53f0d34d8e2b7cca0fbaab8ec55179066.zip
hdf5-9cbeb3c53f0d34d8e2b7cca0fbaab8ec55179066.tar.gz
hdf5-9cbeb3c53f0d34d8e2b7cca0fbaab8ec55179066.tar.bz2
[svn-r3121] Purpose:
Fix and improve Description: - Put functions that are common to H5File and Group into a prototype class, CommonFG. I didn't do that before because of the fear of the consequences of multiple inheritance, since H5File and Group already inherit from different super classes. I recently read a C++ book and learned to use MI more safely. This change reduced some more of code redundancy. - Added missing const to some function parameters - Added missing return statements for some functions. Platforms tested: Solaris/CC 5.0 (arabica)
Diffstat (limited to 'c++/src/H5IdComponent.cpp')
-rw-r--r--c++/src/H5IdComponent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/src/H5IdComponent.cpp b/c++/src/H5IdComponent.cpp
index fbbd80e..4850bb0 100644
--- a/c++/src/H5IdComponent.cpp
+++ b/c++/src/H5IdComponent.cpp
@@ -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( const hid_t new_id )
+void IdComponent::setId( hid_t new_id )
{
// reset the identifier of this object, call appropriate H5Xclose
resetIdComponent( this );