summaryrefslogtreecommitdiffstats
path: root/c++/src/H5IdComponent.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-08-08 15:42:39 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-08-08 15:42:39 (GMT)
commitf74bef15ced59291d51e0d3428e2dd595ed37260 (patch)
tree7af4e30ad90920545c29911e4b34e8da6d290bf1 /c++/src/H5IdComponent.cpp
parentea15f348a1254b5a4ed3e8039f191a0430e4c3f2 (diff)
downloadhdf5-f74bef15ced59291d51e0d3428e2dd595ed37260.zip
hdf5-f74bef15ced59291d51e0d3428e2dd595ed37260.tar.gz
hdf5-f74bef15ced59291d51e0d3428e2dd595ed37260.tar.bz2
[svn-r11210] Purpose: Code improvement
Description: Made use of IdComponent::inMemFunc in more classes. Platforms tested: Linux 2.4 (heping) SunOS 5.8 64-bit (sol)
Diffstat (limited to 'c++/src/H5IdComponent.cpp')
-rw-r--r--c++/src/H5IdComponent.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/c++/src/H5IdComponent.cpp b/c++/src/H5IdComponent.cpp
index 15a4898..51bdc02 100644
--- a/c++/src/H5IdComponent.cpp
+++ b/c++/src/H5IdComponent.cpp
@@ -53,7 +53,7 @@ void IdComponent::incRefCount(const hid_t obj_id) const
{
if (p_valid_id(obj_id))
if (H5Iinc_ref(obj_id) < 0)
- throw IdComponentException("IdComponent::incRefCount", "incrementing object ref count failed");
+ throw IdComponentException(inMemFunc("incRefCount"), "incrementing object ref count failed");
}
//--------------------------------------------------------------------------
@@ -79,10 +79,10 @@ void IdComponent::decRefCount(const hid_t obj_id) const
if (p_valid_id(obj_id))
if (H5Idec_ref(obj_id) < 0)
if (H5Iget_ref(obj_id) <= 0)
- throw IdComponentException("IdComponent::decRefCount",
+ throw IdComponentException(inMemFunc("decRefCount"),
"object ref count is 0 or negative");
else
- throw IdComponentException("IdComponent::decRefCount",
+ throw IdComponentException(inMemFunc("decRefCount"),
"decrementing object ref count failed");
}
@@ -109,7 +109,7 @@ int IdComponent::getCounter(const hid_t obj_id) const
{
counter = H5Iget_ref(obj_id);
if (counter < 0)
- throw IdComponentException("IdComponent::incRefCount", "incrementing object ref count failed");
+ throw IdComponentException(inMemFunc("incRefCount"), "incrementing object ref count failed");
}
return (counter);
}