diff --git a/src/libs/antares/study/parts/short-term-storage/container.cpp b/src/libs/antares/study/parts/short-term-storage/container.cpp index 181f38cab9..2af37df6c8 100644 --- a/src/libs/antares/study/parts/short-term-storage/container.cpp +++ b/src/libs/antares/study/parts/short-term-storage/container.cpp @@ -238,18 +238,18 @@ std::pair STStorageInput::reserveParticipationGroupAt(const Area* area, unsigned int index) const { int column = 0; - for (auto [reserveName, _] : area->allCapacityReservations.areaCapacityReservationsUp) + for (const auto& [reserveName, _]: area->allCapacityReservations.areaCapacityReservationsUp) { - for (int indexGroup = 0; indexGroup < Data::groupMax; indexGroup++) + for (int indexGroup = 0; indexGroup < Data::ShortTermStorage::groupMax; indexGroup++) { if (column == index) return {static_cast(indexGroup), reserveName}; column++; } } - for (auto [reserveName, _] : area->allCapacityReservations.areaCapacityReservationsDown) + for (const auto& [reserveName, _]: area->allCapacityReservations.areaCapacityReservationsDown) { - for (int indexGroup = 0; indexGroup < Data::groupMax; indexGroup++) + for (int indexGroup = 0; indexGroup < Data::ShortTermStorage::groupMax; indexGroup++) { if (column == index) return {static_cast(indexGroup), reserveName}; diff --git a/src/solver/variable/include/antares/solver/variable/economy/vCardReserveParticipationBySTStorageGroup.h b/src/solver/variable/include/antares/solver/variable/economy/vCardReserveParticipationBySTStorageGroup.h index cb1280cb3e..6070c44036 100644 --- a/src/solver/variable/include/antares/solver/variable/economy/vCardReserveParticipationBySTStorageGroup.h +++ b/src/solver/variable/include/antares/solver/variable/economy/vCardReserveParticipationBySTStorageGroup.h @@ -114,11 +114,11 @@ static std::string STStorageGroupToString(Data::ShortTermStorage::Group idx) case Group::Other2: return "Other2"; case Group::Other3: - return "Other 3"; + return "Other3"; case Group::Other4: - return "Other 4"; + return "Other4"; case Group::Other5: - return "Other 5"; + return "Other5"; default: return ""; }