From f46e89a1aeed7c10e97d4a2f045f142c43e43218 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 13 May 2017 16:46:49 +0200 Subject: [PATCH] fix -Woverloaded-virtual --- src/Base/Exception.cpp | 4 ++-- src/Base/Exception.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Base/Exception.cpp b/src/Base/Exception.cpp index e9b8a6e005..43622a1d57 100644 --- a/src/Base/Exception.cpp +++ b/src/Base/Exception.cpp @@ -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())); diff --git a/src/Base/Exception.h b/src/Base/Exception.h index 0661f0e039..87d2341e01 100644 --- a/src/Base/Exception.h +++ b/src/Base/Exception.h @@ -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: