diff --git a/src/Base/Exception.h b/src/Base/Exception.h index 6377c2a215..0c14e89c89 100644 --- a/src/Base/Exception.h +++ b/src/Base/Exception.h @@ -253,15 +253,15 @@ public: /// Assignment operator FileException &operator=(const FileException &inst); /// Description of the exception - virtual const char* what() const throw(); + virtual const char* what() const throw() override; /// Report generation - virtual void ReportException (void) const; + virtual void ReportException (void) const override; /// Get file name for use with tranlatable message std::string getFileName() const; /// returns a Python dictionary containing the exception data - virtual PyObject * getPyObject(void); + virtual PyObject * getPyObject(void) override; /// returns sets the exception data from a Python dictionary - virtual void setPyObject( PyObject * pydict); + virtual void setPyObject( PyObject * pydict) override; virtual PyObject * getPyExceptionType() const override; protected: @@ -326,7 +326,7 @@ public: virtual ~MemoryException() throw() {} #if defined (__GNUC__) /// Description of the exception - virtual const char* what() const throw(); + virtual const char* what() const throw() override; #endif }; diff --git a/src/Base/Interpreter.h b/src/Base/Interpreter.h index 13a6875f8c..c2d404a3bc 100644 --- a/src/Base/Interpreter.h +++ b/src/Base/Interpreter.h @@ -113,7 +113,7 @@ public: const std::string &getStackTrace(void) const {return _stackTrace;} const std::string &getErrorType(void) const {return _errorType;} virtual PyObject *getPyExceptionType(void) const override {return _exceptionType;} - void ReportException (void) const; + void ReportException (void) const override; protected: std::string _stackTrace;