Minor cosmetics.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 9 Sep 2016 10:24:13 +0000 (12:24 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 9 Sep 2016 10:24:13 +0000 (12:24 +0200)
universe.cc

index 47d7c88..4a2e4f9 100644 (file)
@@ -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);
 }