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

@@ -618,23 +618,12 @@ struct ColorButtonP
{
QColor old, col;
QPointer<QColorDialog> cd;
bool allowChange;
bool autoChange;
bool drawFrame;
bool allowTransparency;
bool modal;
bool dirty;
ColorButtonP()
: cd(nullptr)
, allowChange(true)
, autoChange(false)
, drawFrame(true)
, allowTransparency(false)
, modal(true)
, dirty(true)
{
}
bool allowChange{true};
bool autoChange{false};
bool drawFrame{true};
bool allowTransparency{false};
bool modal{true};
bool dirty{true};
};
}