We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2ad2ee commit 5a040edCopy full SHA for 5a040ed
include/highfive/H5Exception.hpp
@@ -23,12 +23,9 @@ namespace HighFive {
23
class Exception: public std::exception {
24
public:
25
Exception(const std::string& err_msg)
26
- : _errmsg(err_msg)
27
- , _next()
28
- , _err_major(0)
29
- , _err_minor(0) {}
+ : _errmsg(err_msg) {}
30
31
- virtual ~Exception() throw() {}
+ ~Exception() throw() override {}
32
33
///
34
/// \brief get the current exception error message
@@ -73,8 +70,8 @@ class Exception: public std::exception {
73
70
74
71
protected:
75
72
std::string _errmsg;
76
- std::shared_ptr<Exception> _next;
77
- hid_t _err_major, _err_minor;
+ std::shared_ptr<Exception> _next = nullptr;
+ hid_t _err_major = 0, _err_minor = 0;
78
79
friend struct HDF5ErrMapper;
80
};
0 commit comments