summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5Group.cpp')
-rw-r--r--c++/src/H5Group.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5Group.cpp b/c++/src/H5Group.cpp
index d679960..0f2ff04 100644
--- a/c++/src/H5Group.cpp
+++ b/c++/src/H5Group.cpp
@@ -154,7 +154,7 @@ void Group::p_setId(const hid_t new_id)
try {
close();
}
- catch (Exception close_error) {
+ catch (Exception& close_error) {
throw GroupIException("Group::p_setId", close_error.getDetailMsg());
}
// reset object's id to the given id
@@ -219,7 +219,7 @@ Group::~Group()
try {
close();
}
- catch (Exception close_error) {
+ catch (Exception& close_error) {
cerr << "Group::~Group - " << close_error.getDetailMsg() << endl;
}
}