fix -Winconsistent-missing-override

This commit is contained in:
wmayer
2019-08-09 12:41:15 +02:00
parent 1c234373d6
commit 99287c3ebf
2 changed files with 6 additions and 6 deletions

View File

@@ -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
};

View File

@@ -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;