Gui: modernize C++: use default member init

This commit is contained in:
wmayer
2023-08-23 16:29:19 +02:00
committed by wwmayer
parent 1cf1a90a17
commit 6beace8da6
79 changed files with 220 additions and 325 deletions

View File

@@ -321,24 +321,20 @@ private:
};
struct PythonDebuggerP {
PyObject* out_o;
PyObject* err_o;
PyObject* exc_o;
PyObject* out_n;
PyObject* err_n;
PyObject* exc_n;
PyObject* out_o{nullptr};
PyObject* err_o{nullptr};
PyObject* exc_o{nullptr};
PyObject* out_n{nullptr};
PyObject* err_n{nullptr};
PyObject* exc_n{nullptr};
PythonDebugExcept* pypde;
bool init, trystop, running;
bool init{false}, trystop{false}, running{false};
QEventLoop loop;
PyObject* pydbg;
PyObject* pydbg{nullptr};
std::vector<Breakpoint> bps;
explicit PythonDebuggerP(PythonDebugger* that) :
init(false), trystop(false), running(false)
explicit PythonDebuggerP(PythonDebugger* that)
{
out_o = nullptr;
err_o = nullptr;
exc_o = nullptr;
Base::PyGILStateLocker lock;
out_n = new PythonDebugStdout();
err_n = new PythonDebugStderr();