diff --git a/Common/Exception.cpp b/Common/Exception.cpp index 5295312..ea79889 100644 --- a/Common/Exception.cpp +++ b/Common/Exception.cpp @@ -33,7 +33,7 @@ Exception::~Exception() throw() { } -const char *Exception::what() +const char *Exception::what() const throw() { return _string.c_str(); } diff --git a/Common/Exception.h b/Common/Exception.h index 3377cac..d55eed3 100644 --- a/Common/Exception.h +++ b/Common/Exception.h @@ -14,7 +14,7 @@ public: virtual ~Exception() throw (); - virtual const char *what(); + virtual const char *what() const throw(); virtual const char *errorString(); int error() const { return _error; }