From 815a38288ae7c4562c26608e14afa82f1500bec5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 6 Mar 2020 22:47:36 -0500 Subject: [PATCH] CSaveableState: Initialize vectors in the constructor initializer list Initializes the vectors in place, rather than constructing them and then resizing. --- Runtime/GuiSys/CSaveableState.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Runtime/GuiSys/CSaveableState.hpp b/Runtime/GuiSys/CSaveableState.hpp index 6be5b09e1..ca6168828 100644 --- a/Runtime/GuiSys/CSaveableState.hpp +++ b/Runtime/GuiSys/CSaveableState.hpp @@ -35,10 +35,7 @@ protected: EVerticalJustification x84_vjust = EVerticalJustification::Top; public: - CSaveableState() { - x54_colors.resize(3, zeus::skBlack); - x64_colorOverrides.resize(16); - } + CSaveableState() : x54_colors(3, zeus::skBlack), x64_colorOverrides(16) {} bool IsFinishedLoading() const; };