summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataSet.cpp
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-01 14:47:19 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-01 14:47:19 (GMT)
commit2ca10d0ace6b55408919d9561002df24b1bcfbe7 (patch)
treedbdae2f2615ebca19d3c75989ef258cc9cc4ac80 /c++/src/H5DataSet.cpp
parent1ec351813bd999925e4d4ba2a93f28b3c84c405f (diff)
downloadhdf5-2ca10d0ace6b55408919d9561002df24b1bcfbe7.zip
hdf5-2ca10d0ace6b55408919d9561002df24b1bcfbe7.tar.gz
hdf5-2ca10d0ace6b55408919d9561002df24b1bcfbe7.tar.bz2
[svn-r8602] Purpose:
Code update Description: Update C++ wrappers to use new ID reference counting mechanisms. Platforms tested: FreeBSD 4.9 (sleipnir) w/C++ Too focused to require h5committest
Diffstat (limited to 'c++/src/H5DataSet.cpp')
-rw-r--r--c++/src/H5DataSet.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/c++/src/H5DataSet.cpp b/c++/src/H5DataSet.cpp
index 31931b3..1229647 100644
--- a/c++/src/H5DataSet.cpp
+++ b/c++/src/H5DataSet.cpp
@@ -20,10 +20,8 @@
#endif
#include "H5Include.h"
-#include "H5RefCounter.h"
#include "H5Exception.h"
#include "H5IdComponent.h"
-#include "H5Idtemplates.h"
#include "H5PropList.h"
#include "H5Object.h"
#include "H5PropList.h"
@@ -506,8 +504,9 @@ DataSet::~DataSet()
{
// The dataset id will be closed properly
try {
- resetIdComponent( this ); }
- catch (Exception close_error) { // thrown by p_close
+ decRefCount();
+ }
+ catch (Exception close_error) {
cerr << "DataSet::~DataSet - " << close_error.getDetailMsg() << endl;
}
}