diff options
Diffstat (limited to 'c++/src/H5PropList.cpp')
-rw-r--r-- | c++/src/H5PropList.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/c++/src/H5PropList.cpp b/c++/src/H5PropList.cpp index 5279be0..ad9c8ca 100644 --- a/c++/src/H5PropList.cpp +++ b/c++/src/H5PropList.cpp @@ -15,10 +15,7 @@ const PropList PropList::DEFAULT( H5P_DEFAULT ); // Default constructor - set id to 0 by default here but may be set // to a valid one, if any, by a subclass constructor. -PropList::PropList() : IdComponent( 0 ) -{ -// id_obj = new IdComponent( 0 ); // init default object's id to 0 -} +PropList::PropList() : IdComponent( 0 ) {} // Creates a new property of specified type PropList::PropList( H5P_class_t type ) : IdComponent( 0 ) @@ -55,10 +52,7 @@ void PropList::copy( const PropList& like_plist ) id = H5Pcopy( like_plist.getId() ); // points to the same ref counter - ref_count = like_plist.ref_count; - - // increment ref counter to indicate additional references to this id - ref_count->increment(); + ref_count = new RefCounter; if( id <= 0 ) { |