projects
/
universe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6408d9f
)
Minor cosmetics.
author
Francois Fleuret
<francois@fleuret.org>
Fri, 9 Sep 2016 10:24:13 +0000
(12:24 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Fri, 9 Sep 2016 10:24:13 +0000
(12:24 +0200)
universe.cc
patch
|
blob
|
history
diff --git
a/universe.cc
b/universe.cc
index
47d7c88
..
4a2e4f9
100644
(file)
--- 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);
}