Cure warning about missing base initialization (and fix a real bug in the process...)

This commit is contained in:
Sylvain Pion 2007-03-17 17:10:20 +00:00
parent b0a58d5601
commit 8ea8bddfce
1 changed files with 2 additions and 6 deletions

View File

@ -64,12 +64,8 @@ public:
Triangulation_cell_base_with_circumcenter_3
(const Triangulation_cell_base_with_circumcenter_3 &c)
{
if (c.circumcenter_ != NULL)
circumcenter_ = new Point_3(*circumcenter_);
else
circumcenter_ = NULL;
}
: Cb(c), circumcenter_(c.circumcenter_ != NULL ? new Point_3(*(c.circumcenter_)) : NULL)
{}
Triangulation_cell_base_with_circumcenter_3&
operator=(const Triangulation_cell_base_with_circumcenter_3 &c)