Skip to content

Commit

Permalink
Simplify districts : formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
guilpier-code committed Jul 24, 2024
1 parent 081f91a commit 308ea5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/libs/antares/study/area/sets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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")
{
Expand Down
6 changes: 3 additions & 3 deletions src/libs/antares/study/include/antares/study/sets.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down

0 comments on commit 308ea5e

Please sign in to comment.