diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-04-22 15:26:39 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-04-22 15:26:39 (GMT) |
commit | 5aea4260b5537793352e6c78a7737d700159f16f (patch) | |
tree | c0dcba82daf483fdec33d0e5c15f628c5f1effa8 /c++/src/H5Attribute.cpp | |
parent | 5d4e4ed0cbb5c4eab3076e5f61813facaf72f82d (diff) | |
download | hdf5-5aea4260b5537793352e6c78a7737d700159f16f.zip hdf5-5aea4260b5537793352e6c78a7737d700159f16f.tar.gz hdf5-5aea4260b5537793352e6c78a7737d700159f16f.tar.bz2 |
[svn-r29761] Purpose: Add function
Description:
Added member function ArrayType::operator= because ArrayType has
pointer data members.
Merged from trunk r29306.
Platforms tested:
Linux/32 2.6 (jam)
Linux/64 (platypus)
Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5Attribute.cpp')
-rw-r--r-- | c++/src/H5Attribute.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/c++/src/H5Attribute.cpp b/c++/src/H5Attribute.cpp index 6705739..7d5b421 100644 --- a/c++/src/H5Attribute.cpp +++ b/c++/src/H5Attribute.cpp @@ -60,9 +60,8 @@ Attribute::Attribute() : AbstractDs(), IdComponent(), id(H5I_INVALID_HID) {} ///\param original - IN: Original Attribute object to copy // Programmer Binh-Minh Ribler - 2000 //-------------------------------------------------------------------------- -Attribute::Attribute(const Attribute& original) : AbstractDs(), IdComponent() +Attribute::Attribute(const Attribute& original) : AbstractDs(), IdComponent(), id(original.id) { - id = original.getId(); incRefCount(); // increment number of references to this id } @@ -74,9 +73,8 @@ Attribute::Attribute(const Attribute& original) : AbstractDs(), IdComponent() ///\exception H5::AttributeIException // Programmer Binh-Minh Ribler - 2000 //-------------------------------------------------------------------------- -Attribute::Attribute(const hid_t existing_id) : AbstractDs(), IdComponent() +Attribute::Attribute(const hid_t existing_id) : AbstractDs(), IdComponent(), id(existing_id) { - id = existing_id; incRefCount(); // increment number of references to this id } |