From: Francois Fleuret Date: Fri, 9 Sep 2016 10:24:13 +0000 (+0200) Subject: Minor cosmetics. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=a014985119307fe97a26f33a98c9c5d7b99f09f2;p=universe.git Minor cosmetics. --- diff --git a/universe.cc b/universe.cc index 47d7c88..4a2e4f9 100644 --- a/universe.cc +++ b/universe.cc @@ -16,11 +16,11 @@ Universe::Universe(int nb_max_polygons, } Universe::~Universe() { - for(int n = 0; n < _nb_polygons; n++) if(_polygons[n]) delete _polygons[n]; + clear(); delete[] _polygons; } -void Universe::initialize(Polygon *p) { +void Universe::initialize_polygon(Polygon *p) { p->initialize(_nb_max_polygons); }