Skip to content

Commit 5a040ed

Browse files
committed
cleanup: Exception
1 parent e2ad2ee commit 5a040ed

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

include/highfive/H5Exception.hpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@ namespace HighFive {
2323
class Exception: public std::exception {
2424
public:
2525
Exception(const std::string& err_msg)
26-
: _errmsg(err_msg)
27-
, _next()
28-
, _err_major(0)
29-
, _err_minor(0) {}
26+
: _errmsg(err_msg) {}
3027

31-
virtual ~Exception() throw() {}
28+
~Exception() throw() override {}
3229

3330
///
3431
/// \brief get the current exception error message
@@ -73,8 +70,8 @@ class Exception: public std::exception {
7370

7471
protected:
7572
std::string _errmsg;
76-
std::shared_ptr<Exception> _next;
77-
hid_t _err_major, _err_minor;
73+
std::shared_ptr<Exception> _next = nullptr;
74+
hid_t _err_major = 0, _err_minor = 0;
7875

7976
friend struct HDF5ErrMapper;
8077
};

0 commit comments

Comments
 (0)