summaryrefslogtreecommitdiffstats
path: root/c++/test/th5s.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-22 20:32:18 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2016-04-22 20:32:18 (GMT)
commit997392079b023bf366b62c17936d4ec305739be3 (patch)
tree122ba2b1d3f3b240a88c74dd75e2d83ecdbb54e7 /c++/test/th5s.cpp
parentc37607eb58994041cbeaabdab5f1e9902794a3e9 (diff)
downloadhdf5-997392079b023bf366b62c17936d4ec305739be3.zip
hdf5-997392079b023bf366b62c17936d4ec305739be3.tar.gz
hdf5-997392079b023bf366b62c17936d4ec305739be3.tar.bz2
[svn-r29766] Description:
- Changed object in catch statements to reference (left over from previous) Platforms tested: Linux/32 2.6 (jam) (very minor)
Diffstat (limited to 'c++/test/th5s.cpp')
-rw-r--r--c++/test/th5s.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/test/th5s.cpp b/c++/test/th5s.cpp
index 181c09f..7ef048b 100644
--- a/c++/test/th5s.cpp
+++ b/c++/test/th5s.cpp
@@ -178,7 +178,7 @@ static void test_h5s_basic()
// Should FAIL but didn't, so throw an invalid action exception
throw InvalidActionException("DataSpace constructor", "Library allowed overwrite of existing dataset");
}
- catch( DataSpaceIException E ) // Simple data space with too many dims
+ catch (DataSpaceIException& E) // Simple data space with too many dims
{} // do nothing, exception expected
/*
@@ -204,7 +204,7 @@ static void test_h5s_basic()
// Should FAIL but didn't, so throw an invalid action exception
throw InvalidActionException("H5File::openDataSet", "Opening a dataset with higher dimensionality than what the library can handle");
}
- catch( FileIException E ) // catching higher dimensionality dataset
+ catch (FileIException& E) // catching higher dimensionality dataset
{} // do nothing, exception expected
// CHECK_I(ret, "H5Fclose"); // leave this here, later, fake a failure