mirror of
https://github.com/jhasse/poly2tri.git
synced 2024-11-30 01:03:30 +01:00
fix compiler warning (also pass by value since it's faster for PODs)
This commit is contained in:
parent
f4f6ab5ab1
commit
293108fcdb
@ -103,7 +103,7 @@ void SweepContext::InitEdges(std::vector<Point*> polyline)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Point* SweepContext::GetPoint(const int& index)
|
Point* SweepContext::GetPoint(size_t index)
|
||||||
{
|
{
|
||||||
return points_[index];
|
return points_[index];
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ void MapTriangleToNodes(Triangle& t);
|
|||||||
|
|
||||||
void AddToMap(Triangle* triangle);
|
void AddToMap(Triangle* triangle);
|
||||||
|
|
||||||
Point* GetPoint(const int& index);
|
Point* GetPoint(size_t index);
|
||||||
|
|
||||||
Point* GetPoints();
|
Point* GetPoints();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user