diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-04-06 21:53:25 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2015-04-06 21:53:25 (GMT) |
commit | 5a810576d55f21ee8a872b904026647358113836 (patch) | |
tree | ee7c9c64d2e3e0973867b8830f93f10e62d4d611 /c++/src/H5Attribute.cpp | |
parent | a586729afb1e25f82befc4b394f3e819a4f7a880 (diff) | |
download | hdf5-5a810576d55f21ee8a872b904026647358113836.zip hdf5-5a810576d55f21ee8a872b904026647358113836.tar.gz hdf5-5a810576d55f21ee8a872b904026647358113836.tar.bz2 |
[svn-r26742] Purpose: Fixed HDFFV-7947 (cont.)
Description:
- Added incRefCount() to other constructors that missed from last time.
- Added default value for H5File::getObjCount and removed its extra version
Platforms tested:
Linux/64 (platypus)
Linux/32 2.6 (jam)
SunOS 5.11 (emu)
Diffstat (limited to 'c++/src/H5Attribute.cpp')
-rw-r--r-- | c++/src/H5Attribute.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c++/src/H5Attribute.cpp b/c++/src/H5Attribute.cpp index 12f39df..71cd431 100644 --- a/c++/src/H5Attribute.cpp +++ b/c++/src/H5Attribute.cpp @@ -74,7 +74,8 @@ Attribute::Attribute(const Attribute& original) : 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 } //-------------------------------------------------------------------------- |