Gui: modernize C++: use override

This commit is contained in:
wmayer
2023-08-03 23:12:19 +02:00
committed by wwmayer
parent e115c52418
commit e72da4d4c4
35 changed files with 186 additions and 168 deletions

View File

@@ -26,6 +26,8 @@
#include <CXX/Extensions.hxx>
#include <frameobject.h>
#include <set>
#include <QObject>
#include <FCGlobal.h>
namespace Gui {
@@ -98,7 +100,7 @@ public:
static void init_module();
PythonDebugModule();
virtual ~PythonDebugModule();
~PythonDebugModule() override;
private:
Py::Object getFunctionCallCount(const Py::Tuple &a);
@@ -116,9 +118,9 @@ public:
static void init_type(); // announce properties and methods
PythonDebugStdout();
~PythonDebugStdout();
~PythonDebugStdout() override;
Py::Object repr();
Py::Object repr() override;
Py::Object write(const Py::Tuple&);
Py::Object flush(const Py::Tuple&);
};
@@ -132,9 +134,9 @@ public:
static void init_type(); // announce properties and methods
PythonDebugStderr();
~PythonDebugStderr();
~PythonDebugStderr() override;
Py::Object repr();
Py::Object repr() override;
Py::Object write(const Py::Tuple&);
};
@@ -147,9 +149,9 @@ public:
static void init_type(); // announce properties and methods
PythonDebugExcept();
~PythonDebugExcept();
~PythonDebugExcept() override;
Py::Object repr();
Py::Object repr() override;
Py::Object excepthook(const Py::Tuple&);
};
@@ -159,7 +161,7 @@ class GuiExport PythonDebugger : public QObject
public:
PythonDebugger();
~PythonDebugger();
~PythonDebugger() override;
Breakpoint getBreakpoint(const QString&) const;
bool toggleBreakpoint(int line, const QString&);
void runFile(const QString& fn);