mirror of
https://github.com/jhasse/poly2tri.git
synced 2024-11-26 15:26:12 +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];
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ void MapTriangleToNodes(Triangle& t);
|
||||
|
||||
void AddToMap(Triangle* triangle);
|
||||
|
||||
Point* GetPoint(const int& index);
|
||||
Point* GetPoint(size_t index);
|
||||
|
||||
Point* GetPoints();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user