Gui: modernize C++: use default member init
This commit is contained in:
@@ -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};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user