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:
Lioncash 2023-12-11 16:14:10 -05:00
parent dd0ac7d53c
commit 9472da788d
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
ConfigFloatSlider::ConfigFloatSlider(float minimum, float maximum,
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 int steps = std::round(range / step);