From d76b7d6b7fad6618fc90543928709baa3603a327 Mon Sep 17 00:00:00 2001 From: Christopher Baker Date: Sun, 16 Oct 2016 23:54:11 -0500 Subject: [PATCH] Const corrections. (#141) --- include/serial/serial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/serial/serial.h b/include/serial/serial.h index 82dc299..8ba9b54 100644 --- a/include/serial/serial.h +++ b/include/serial/serial.h @@ -717,7 +717,7 @@ public: 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();