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 ee0fad4c90
commit 5a153e50ff
79 changed files with 220 additions and 325 deletions

View File

@@ -305,24 +305,17 @@ private:
void onRestoreViews();
private:
const int maxViews;
int savedViews;
int offset;
QAction* saveView;
QAction* freezeView;
QAction* clearView;
QAction* separator;
const int maxViews{50};
int savedViews{0};
int offset{0};
QAction* saveView{nullptr};
QAction* freezeView{nullptr};
QAction* clearView{nullptr};
QAction* separator{nullptr};
};
StdCmdFreezeViews::StdCmdFreezeViews()
: Command("Std_FreezeViews")
, maxViews(50)
, savedViews(0)
, offset(0)
, saveView(nullptr)
, freezeView(nullptr)
, clearView(nullptr)
, separator(nullptr)
{
sGroup = "Standard-View";
sMenuText = QT_TR_NOOP("Freeze display");