From 9d5857e13979af5399dcf44a1e92a50d7297a321 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 17 Mar 2020 22:20:54 -0400 Subject: [PATCH] CGuiSliderGroup: Make use of std::array where applicable Same behavior, stronger typing. --- Runtime/GuiSys/CGuiSliderGroup.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/GuiSys/CGuiSliderGroup.hpp b/Runtime/GuiSys/CGuiSliderGroup.hpp index f8a20235a..3c13f783b 100644 --- a/Runtime/GuiSys/CGuiSliderGroup.hpp +++ b/Runtime/GuiSys/CGuiSliderGroup.hpp @@ -1,5 +1,6 @@ #pragma once +#include #include #include @@ -18,7 +19,7 @@ private: float xc0_roundedCurVal; float xc4_curVal; float xc8_increment; - CGuiWidget* xcc_sliderRangeWidgets[2] = {}; + std::array xcc_sliderRangeWidgets{}; std::function xd8_changeCallback; EState xf0_state = EState::None; union {