fix -Woverloaded-virtual

This commit is contained in:
wmayer
2017-05-13 16:46:49 +02:00
parent 55173f6b15
commit f46e89a1ae
2 changed files with 4 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ void Exception::ReportException (void) const
Console().Error("Exception (%s): %s \n",Console().Time(),str.c_str());
}
PyObject * Exception::getPyObject(void) const
PyObject * Exception::getPyObject(void)
{
PyObject *edict = PyDict_New();
@@ -279,7 +279,7 @@ void FileException::ReportException (void) const
Console().Error("Exception (%s): %s \n",Console().Time(),str.c_str());
}
PyObject * FileException::getPyObject(void) const
PyObject * FileException::getPyObject(void)
{
PyObject *edict = Exception::getPyObject();
PyDict_SetItemString(edict, "filename", PyString_FromString(this->file.fileName().c_str()));

View File

@@ -85,7 +85,7 @@ public:
/// intended to use via macro for autofilling of debugging information
inline void setDebugInformation(const std::string & file, const int line, const std::string & function);
/// returns a Python dictionary containing the exception data
virtual PyObject * getPyObject(void) const;
virtual PyObject * getPyObject(void);
/// returns sets the exception data from a Python dictionary
virtual void setPyObject( PyObject * pydict);
@@ -193,7 +193,7 @@ public:
/// Get file name for use with tranlatable message
std::string getFileName() const;
/// returns a Python dictionary containing the exception data
virtual PyObject * getPyObject(void) const;
virtual PyObject * getPyObject(void);
/// returns sets the exception data from a Python dictionary
virtual void setPyObject( PyObject * pydict);
protected: