App: modernize C++: use default member init

This commit is contained in:
wmayer
2023-08-23 14:13:11 +02:00
committed by wwmayer
parent 4fb07bcfd6
commit ee0fad4c90
39 changed files with 96 additions and 160 deletions

View File

@@ -157,16 +157,7 @@ void ColorField::interpolate (Color clCol1, std::size_t usInd1, Color clCol2, st
}
ColorGradientProfile::ColorGradientProfile()
: tStyle{ColorBarStyle::FLOW}
, fMin{}
, fMax{}
, ctColors{}
, tColorModel{}
, visibility{Visibility::Default}
{
}
ColorGradientProfile::ColorGradientProfile() = default;
bool ColorGradientProfile::isEqual(const ColorGradientProfile& cg) const
{
@@ -309,8 +300,7 @@ void ColorGradient::setColorModel ()
}
}
ColorLegend::ColorLegend ()
: outsideGrayed(false)
ColorLegend::ColorLegend()
{
// default blue, green, red
colorFields.emplace_back(0, 0, 1);