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

@@ -43,15 +43,14 @@ using namespace Gui;
namespace Gui {
struct PythonEditorP
{
int debugLine;
int debugLine{-1};
QRect debugRect;
QPixmap breakpoint;
QPixmap debugMarker;
QString filename;
PythonDebugger* debugger;
PythonEditorP()
: debugLine(-1),
breakpoint(BitmapFactory().iconFromTheme("breakpoint").pixmap(16,16)),
: breakpoint(BitmapFactory().iconFromTheme("breakpoint").pixmap(16,16)),
debugMarker(BitmapFactory().iconFromTheme("debug-marker").pixmap(16,16))
{
debugger = Application::Instance->macroManager()->debugger();