ConfigFloatSlider: Resolve -Wreorder warnings
Orders the initializer list the way that the members would actually be initialized in. Resolves some -Wreorder warnings
This commit is contained in:
parent
dd0ac7d53c
commit
9472da788d
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
ConfigFloatSlider::ConfigFloatSlider(float minimum, float maximum,
|
ConfigFloatSlider::ConfigFloatSlider(float minimum, float maximum,
|
||||||
const Config::Info<float>& setting, float step)
|
const Config::Info<float>& setting, float step)
|
||||||
: ToolTipSlider(Qt::Horizontal), m_minimum(minimum), m_setting(setting), m_step(step)
|
: ToolTipSlider(Qt::Horizontal), m_minimum(minimum), m_step(step), m_setting(setting)
|
||||||
{
|
{
|
||||||
const float range = maximum - minimum;
|
const float range = maximum - minimum;
|
||||||
const int steps = std::round(range / step);
|
const int steps = std::round(range / step);
|
||||||
|
|
Loading…
Reference in New Issue