CGuiSliderGroup: Make use of std::array where applicable

Same behavior, stronger typing.
This commit is contained in:
Lioncash 2020-03-17 22:20:54 -04:00
parent 6ddbd15cfc
commit 9d5857e139
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include <array>
#include <functional> #include <functional>
#include <memory> #include <memory>
@ -18,7 +19,7 @@ private:
float xc0_roundedCurVal; float xc0_roundedCurVal;
float xc4_curVal; float xc4_curVal;
float xc8_increment; float xc8_increment;
CGuiWidget* xcc_sliderRangeWidgets[2] = {}; std::array<CGuiWidget*, 2> xcc_sliderRangeWidgets{};
std::function<void(CGuiSliderGroup*, float)> xd8_changeCallback; std::function<void(CGuiSliderGroup*, float)> xd8_changeCallback;
EState xf0_state = EState::None; EState xf0_state = EState::None;
union { union {