diff options
author | Sean McBride <sean@rogue-research.com> | 2024-02-09 17:29:55 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2024-02-14 22:11:03 (GMT) |
commit | 6331ddabbbb2f280e2e9e4429e3d8afd8f0f598e (patch) | |
tree | 65e41f43267f8790e23da5232e54b4032293e4c1 /c++/test | |
parent | f888fd5892b7d71d2d4a09a52d29f0c77b22dd1b (diff) | |
download | hdf5-6331ddabbbb2f280e2e9e4429e3d8afd8f0f598e.zip hdf5-6331ddabbbb2f280e2e9e4429e3d8afd8f0f598e.tar.gz hdf5-6331ddabbbb2f280e2e9e4429e3d8afd8f0f598e.tar.bz2 |
Modern C++ dtor declarations (#1830)
* C++ dtor modernization
- Replaced a bunch of empty dtors with `= default`
- Removed deprecated `throw()`. In C++11, dtors are `noexcept` by default.
*
Diffstat (limited to 'c++/test')
-rw-r--r-- | c++/test/h5cpputil.cpp | 14 | ||||
-rw-r--r-- | c++/test/h5cpputil.h | 4 |
2 files changed, 2 insertions, 16 deletions
diff --git a/c++/test/h5cpputil.cpp b/c++/test/h5cpputil.cpp index c3feefa..933aa7d 100644 --- a/c++/test/h5cpputil.cpp +++ b/c++/test/h5cpputil.cpp @@ -198,13 +198,6 @@ InvalidActionException::InvalidActionException(const H5std_string &func, const H } //-------------------------------------------------------------------------- -// Function: InvalidActionException destructor -//-------------------------------------------------------------------------- -InvalidActionException::~InvalidActionException() throw() -{ -} - -//-------------------------------------------------------------------------- // Function: TestFailedException default constructor //-------------------------------------------------------------------------- TestFailedException::TestFailedException() : Exception() @@ -225,10 +218,3 @@ TestFailedException::TestFailedException(const H5std_string &func, const H5std_s : Exception(func, message) { } - -//-------------------------------------------------------------------------- -// Function: TestFailedException destructor -//-------------------------------------------------------------------------- -TestFailedException::~TestFailedException() throw() -{ -} diff --git a/c++/test/h5cpputil.h b/c++/test/h5cpputil.h index 392382d..fa6822a 100644 --- a/c++/test/h5cpputil.h +++ b/c++/test/h5cpputil.h @@ -49,14 +49,14 @@ class InvalidActionException : public Exception { public: InvalidActionException(const H5std_string &func_name, const H5std_string &message = DEFAULT_MSG); InvalidActionException(); - ~InvalidActionException() throw() override; + ~InvalidActionException() override = default; }; class TestFailedException : public Exception { public: TestFailedException(const H5std_string &func_name, const H5std_string &message = DEFAULT_MSG); TestFailedException(); - ~TestFailedException() throw() override; + ~TestFailedException() override = default; }; // Overloaded/Template functions to verify values and display proper info |