Skip to content

Commit

Permalink
Fix initialization order warnings (#2183)
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin authored Jun 21, 2024
1 parent 249df28 commit 48a97fa
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/libs/antares/study/area/area.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 48a97fa

Please sign in to comment.