From 308ea5e650cb3dfd698a92c27a1f10ab91c73887 Mon Sep 17 00:00:00 2001 From: Guillaume PIERRE Date: Wed, 24 Jul 2024 13:49:56 +0200 Subject: [PATCH] Simplify districts : formatting --- src/libs/antares/study/area/sets.cpp | 6 +++--- src/libs/antares/study/include/antares/study/sets.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libs/antares/study/area/sets.cpp b/src/libs/antares/study/area/sets.cpp index e256885f41..b6e24eab2e 100644 --- a/src/libs/antares/study/area/sets.cpp +++ b/src/libs/antares/study/area/sets.cpp @@ -414,7 +414,7 @@ uint SetHandlerAreas::size(Sets::SetAreasType& set) return (uint)set.size(); } -bool SetHandlerAreas::add(Sets::SetAreasType& set, const std::string &value) +bool SetHandlerAreas::add(Sets::SetAreasType& set, const std::string& value) { Area* area = AreaListLFind(&areas_, value.c_str()); if (area) @@ -430,7 +430,7 @@ void SetHandlerAreas::add(Sets::SetAreasType& set, const Sets::SetAreasType& oth set.insert(otherSet.begin(), otherSet.end()); } -bool SetHandlerAreas::remove(Sets::SetAreasType& set, const std::string &value) +bool SetHandlerAreas::remove(Sets::SetAreasType& set, const std::string& value) { Area* area = AreaListLFind(&areas_, value.c_str()); if (area) @@ -446,7 +446,7 @@ void SetHandlerAreas::remove(Sets::SetAreasType& set, const Sets::SetAreasType& std::ranges::for_each(otherSet, [&set](auto* area) { set.erase(area); }); } -bool SetHandlerAreas::applyFilter(Sets::SetAreasType& set, const std::string &value) +bool SetHandlerAreas::applyFilter(Sets::SetAreasType& set, const std::string& value) { if (value == "add-all") { diff --git a/src/libs/antares/study/include/antares/study/sets.h b/src/libs/antares/study/include/antares/study/sets.h index 29884d35e4..880f646207 100644 --- a/src/libs/antares/study/include/antares/study/sets.h +++ b/src/libs/antares/study/include/antares/study/sets.h @@ -274,11 +274,11 @@ class SetHandlerAreas void clear(Sets::SetAreasType& set); uint size(Sets::SetAreasType& set); - bool add(Sets::SetAreasType& set, const std::string &value); + bool add(Sets::SetAreasType& set, const std::string& value); void add(Sets::SetAreasType& set, const Sets::SetAreasType& otherSet); - bool remove(Sets::SetAreasType& set, const std::string &value); + bool remove(Sets::SetAreasType& set, const std::string& value); void remove(Sets::SetAreasType& set, const Sets::SetAreasType& otherSet); - bool applyFilter(Sets::SetAreasType& set, const std::string &value); + bool applyFilter(Sets::SetAreasType& set, const std::string& value); private: AreaList& areas_;