From 48a97fab3767c532992e8b08334f27b5d1b290f2 Mon Sep 17 00:00:00 2001 From: payetvin <113102157+payetvin@users.noreply.github.com> Date: Fri, 21 Jun 2024 16:39:10 +0200 Subject: [PATCH] Fix initialization order warnings (#2183) --- src/libs/antares/study/area/area.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/libs/antares/study/area/area.cpp b/src/libs/antares/study/area/area.cpp index 2984704716..da99f973ae 100644 --- a/src/libs/antares/study/area/area.cpp +++ b/src/libs/antares/study/area/area.cpp @@ -45,28 +45,21 @@ void Area::internalInitialize() } Area::Area(): - hydro(*this), reserves(fhrMax, HOURS_PER_YEAR), - miscGen(fhhMax, HOURS_PER_YEAR) + miscGen(fhhMax, HOURS_PER_YEAR), + hydro(*this) { internalInitialize(); } -Area::Area(const AnyString& name): - hydro(*this), - reserves(fhrMax, HOURS_PER_YEAR), - miscGen(fhhMax, HOURS_PER_YEAR) +Area::Area(const AnyString& name) : Area() { internalInitialize(); this->name = name; this->id = Antares::transformNameIntoID(this->name); } -Area::Area(const AnyString& name, const AnyString& id): - - hydro(*this), - reserves(fhrMax, HOURS_PER_YEAR), - miscGen(fhhMax, HOURS_PER_YEAR) +Area::Area(const AnyString& name, const AnyString& id) : Area() { internalInitialize(); this->name = name;