Don't return first_point() and last_point() by reference
This commit is contained in:
@@ -33,15 +33,9 @@ MultiPoint::reverse()
|
||||
}
|
||||
|
||||
Point*
|
||||
MultiPoint::first_point()
|
||||
{
|
||||
return &(this->points.front());
|
||||
}
|
||||
|
||||
const Point*
|
||||
MultiPoint::first_point() const
|
||||
{
|
||||
return &(this->points.front());
|
||||
return new Point(this->points.front());
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user