summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataType.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-22 15:26:39 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-22 15:26:39 (GMT)
commit5aea4260b5537793352e6c78a7737d700159f16f (patch)
treec0dcba82daf483fdec33d0e5c15f628c5f1effa8 /c++/src/H5DataType.cpp
parent5d4e4ed0cbb5c4eab3076e5f61813facaf72f82d (diff)
downloadhdf5-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/H5DataType.cpp')
-rw-r--r--c++/src/H5DataType.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/c++/src/H5DataType.cpp b/c++/src/H5DataType.cpp
index d98a0cf..cb48942 100644
--- a/c++/src/H5DataType.cpp
+++ b/c++/src/H5DataType.cpp
@@ -69,9 +69,8 @@ DataType::DataType() : H5Object(), id(H5I_INVALID_HID) {}
// Removed second argument, "predefined", after changing to the
// new ref counting mechanism that relies on C's ref counting.
//--------------------------------------------------------------------------
-DataType::DataType(const hid_t existing_id) : H5Object()
+DataType::DataType(const hid_t existing_id) : H5Object(), id(existing_id)
{
- id = existing_id;
incRefCount(); // increment number of references to this id
}
@@ -134,9 +133,8 @@ DataType::DataType(const Attribute& attr, const void* ref, H5R_type_t ref_type)
///\brief Copy constructor: makes a copy of the original DataType object.
// Programmer Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
-DataType::DataType(const DataType& original) : H5Object()
+DataType::DataType(const DataType& original) : H5Object(), id(original.id)
{
- id = original.getId();
incRefCount(); // increment number of references to this id
}