summaryrefslogtreecommitdiffstats
path: root/c++/test/tfilter.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-22 22:42:22 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-22 22:42:22 (GMT)
commitd490c837eb601c4a7eee8fba62ce8ba9adb0e9a1 (patch)
tree604b7e94e35625072c61f2a286862f779dba93c6 /c++/test/tfilter.cpp
parent58803d08320c0f704bc4cca600e9701572ddc1b4 (diff)
downloadhdf5-d490c837eb601c4a7eee8fba62ce8ba9adb0e9a1.zip
hdf5-d490c837eb601c4a7eee8fba62ce8ba9adb0e9a1.tar.gz
hdf5-d490c837eb601c4a7eee8fba62ce8ba9adb0e9a1.tar.bz2
[svn-r29769] Purpose: Code improvements
Description: - Changed object in catch statements to reference - Replaced old-style casts or reinterpret_cast with static_cast - Removed unused name H5Library::need_cleanup - Removed Exception::printError from documentation Merged from trunk r29759 and r29766 Platforms tested: Linux/32 2.6 (jam) Linux/64 (platypus) Darwin (osx1010test)
Diffstat (limited to 'c++/test/tfilter.cpp')
-rw-r--r--c++/test/tfilter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c++/test/tfilter.cpp b/c++/test/tfilter.cpp
index ff3901d..19549b3 100644
--- a/c++/test/tfilter.cpp
+++ b/c++/test/tfilter.cpp
@@ -148,7 +148,7 @@ static void test_null_filter()
} // end of try
// catch all other exceptions
- catch (Exception E)
+ catch (Exception& E)
{
issue_fail_msg("test_null_filter()", __LINE__, __FILE__, E.getCDetailMsg());
}
@@ -232,7 +232,7 @@ static void test_szip_filter(H5File& file1)
} // end of try
// catch all other exceptions
- catch (Exception E)
+ catch (Exception& E)
{
issue_fail_msg("test_szip_filter()", __LINE__, __FILE__, E.getCDetailMsg());
}
@@ -280,7 +280,7 @@ void test_filters()
test_null_filter();
test_szip_filter(file1);
}
- catch (Exception E)
+ catch (Exception& E)
{
issue_fail_msg("test_filters()", __LINE__, __FILE__, E.getCDetailMsg());
}