fix -Woverloaded-virtual
This commit is contained in:
@@ -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()));
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user