From 9bdb2b74a9e476d473d45e447b0f985fcbc50546 Mon Sep 17 00:00:00 2001 From: Julien Marrec Date: Thu, 12 Dec 2024 17:13:40 +0100 Subject: [PATCH] Unrelated but replace a C-array of std::string with an array --- src/EnergyPlus/CurveManager.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/EnergyPlus/CurveManager.cc b/src/EnergyPlus/CurveManager.cc index 96e4c941862..72a404b30c0 100644 --- a/src/EnergyPlus/CurveManager.cc +++ b/src/EnergyPlus/CurveManager.cc @@ -47,9 +47,11 @@ // C++ Headers #include +#include #include #include #include +#include // ObjexxFCL Headers #include @@ -1480,7 +1482,7 @@ namespace Curve { } constexpr int NumVar = 4; - std::string VarNames[NumVar] = {"w", "x", "y", "z"}; + constexpr std::array VarNames{"w", "x", "y", "z"}; for (int i = 1; i <= NumVar; ++i) { int MinIndex = 2 * i + 4; int MaxIndex = MinIndex + 1; @@ -1560,7 +1562,7 @@ namespace Curve { } constexpr int NumVar = 5; - std::string VarNames[NumVar] = {"v", "w", "x", "y", "z"}; + constexpr std::array VarNames{"v", "w", "x", "y", "z"}; for (int i = 1; i <= NumVar; ++i) { int MinIndex = 2 * i + 5; int MaxIndex = MinIndex + 1;