Skip to content

Commit

Permalink
use std::swap (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday authored Sep 26, 2024
1 parent a24cca1 commit 359274d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/manifold/src/boolean_result.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,7 @@ struct DuplicateHalfedges {
const int inclusion = i03[halfedge.startVert];
if (inclusion == 0) return;
if (inclusion < 0) { // reverse
int tmp = halfedge.startVert;
halfedge.startVert = halfedge.endVert;
halfedge.endVert = tmp;
std::swap(halfedge.startVert, halfedge.endVert);
}
halfedge.startVert = vP2R[halfedge.startVert];
halfedge.endVert = vP2R[halfedge.endVert];
Expand Down

0 comments on commit 359274d

Please sign in to comment.