change stable_sort to sort(in this place it is better)
This commit is contained in:
parent
fe736291c7
commit
1fa532c624
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ bool has_duplicate_points(std::vector<Point> &&pts)
|
||||||
|
|
||||||
Points collect_duplicates(Points pts /* Copy */)
|
Points collect_duplicates(Points pts /* Copy */)
|
||||||
{
|
{
|
||||||
std::stable_sort(pts.begin(), pts.end());
|
std::sort(pts.begin(), pts.end());
|
||||||
Points duplicits;
|
Points duplicits;
|
||||||
const Point *prev = &pts.front();
|
const Point *prev = &pts.front();
|
||||||
for (size_t i = 1; i < pts.size(); ++i) {
|
for (size_t i = 1; i < pts.size(); ++i) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue