Skip to content

Commit

Permalink
Const corrections. (wjwwood#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakercp authored and wjwwood committed Oct 17, 2016
1 parent 2d416f1 commit d76b7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/serial/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ class IOException : public std::exception
virtual ~IOException() throw() {}
IOException (const IOException& other) : line_(other.line_), e_what_(other.e_what_), errno_(other.errno_) {}

int getErrorNumber () { return errno_; }
int getErrorNumber () const { return errno_; }

virtual const char* what () const throw () {
return e_what_.c_str();
Expand Down

0 comments on commit d76b7d6

Please sign in to comment.