fix compiler warning (also pass by value since it's faster for PODs)

This commit is contained in:
Jan Niklas Hasse 2012-08-21 15:05:48 +02:00
parent f4f6ab5ab1
commit 293108fcdb
2 changed files with 2 additions and 2 deletions

View File

@ -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];
}

View File

@ -77,7 +77,7 @@ void MapTriangleToNodes(Triangle& t);
void AddToMap(Triangle* triangle);
Point* GetPoint(const int& index);
Point* GetPoint(size_t index);
Point* GetPoints();