From a014985119307fe97a26f33a98c9c5d7b99f09f2 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 9 Sep 2016 12:24:13 +0200 Subject: [PATCH] Minor cosmetics. --- universe.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.5