Refactored signatures of many C++ methods for more efficient and safer style. Includes a bugfix for Point::nearest_point() which was returning a pointer to freed memory. #1961
This commit is contained in:
@@ -32,10 +32,10 @@ MultiPoint::reverse()
|
||||
std::reverse(this->points.begin(), this->points.end());
|
||||
}
|
||||
|
||||
Point*
|
||||
Point
|
||||
MultiPoint::first_point() const
|
||||
{
|
||||
return new Point(this->points.front());
|
||||
return this->points.front();
|
||||
}
|
||||
|
||||
double
|
||||
|
||||
Reference in New Issue
Block a user