Skip to content

Commit

Permalink
Fixed warning (param name shadowing)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLevy committed Mar 3, 2023
1 parent 4372190 commit 527a987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/geogram/delaunay/CDT_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -952,8 +952,8 @@ namespace GEO {
index_t v1, index_t v2, const DList& Q
) {
std::set<Edge> I;
auto make_edge = [](index_t v1, index_t v2)->Edge {
return std::make_pair(std::min(v1,v2), std::max(v1,v2));
auto make_edge = [](index_t w1, index_t w2)->Edge {
return std::make_pair(std::min(w1,w2), std::max(w1,w2));
};
for(index_t t=Q.front(); t!=index_t(-1); t = Q.next(t)) {
geo_assert(segment_edge_intersect(v1,v2,t,0));
Expand Down

0 comments on commit 527a987

Please sign in to comment.