Don't return first_point() and last_point() by reference

This commit is contained in:
Alessandro Ranellucci 2013-09-02 22:33:03 +02:00
parent 0ffb0f6a58
commit 275422fac7
12 changed files with 28 additions and 42 deletions

View file

@ -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