mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +08:00
fix warnings about uninitialized class members
This commit is contained in:
parent
32b3631285
commit
22f5e302be
@ -631,9 +631,7 @@ public:
|
|||||||
ss << "SerialException " << description << " failed.";
|
ss << "SerialException " << description << " failed.";
|
||||||
e_what_ = ss.str();
|
e_what_ = ss.str();
|
||||||
}
|
}
|
||||||
SerialException (const SerialException& other) {
|
SerialException (const SerialException& other) : e_what_(other.e_what_) {}
|
||||||
e_what_ = other.e_what_;
|
|
||||||
}
|
|
||||||
virtual ~SerialException() throw() {}
|
virtual ~SerialException() throw() {}
|
||||||
virtual const char* what () const throw () {
|
virtual const char* what () const throw () {
|
||||||
return e_what_.c_str();
|
return e_what_.c_str();
|
||||||
@ -670,9 +668,7 @@ public:
|
|||||||
e_what_ = ss.str();
|
e_what_ = ss.str();
|
||||||
}
|
}
|
||||||
virtual ~IOException() throw() {}
|
virtual ~IOException() throw() {}
|
||||||
IOException (const IOException& other) {
|
IOException (const IOException& other) : e_what_(other.e_what_), line_(other.line_), errno_(other.errno_) {}
|
||||||
e_what_ = other.e_what_;
|
|
||||||
}
|
|
||||||
|
|
||||||
int getErrorNumber () { return errno_; }
|
int getErrorNumber () { return errno_; }
|
||||||
|
|
||||||
@ -692,9 +688,7 @@ public:
|
|||||||
ss << "PortNotOpenedException " << description << " failed.";
|
ss << "PortNotOpenedException " << description << " failed.";
|
||||||
e_what_ = ss.str();
|
e_what_ = ss.str();
|
||||||
}
|
}
|
||||||
PortNotOpenedException (const PortNotOpenedException& other) {
|
PortNotOpenedException (const PortNotOpenedException& other) : e_what_(other.e_what_) {}
|
||||||
e_what_ = other.e_what_;
|
|
||||||
}
|
|
||||||
virtual ~PortNotOpenedException() throw() {}
|
virtual ~PortNotOpenedException() throw() {}
|
||||||
virtual const char* what () const throw () {
|
virtual const char* what () const throw () {
|
||||||
return e_what_.c_str();
|
return e_what_.c_str();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user