# HG changeset patch # User Markus Bröker # Date 1239878951 -7200 # Node ID f52a9deddfc03fa2a73404c88fdb1212455a211f # Parent 024c2932a31ffbac145f87eff92b5148a501d167 cube.cc: * Create an object, move this object. * don't try to re-create an object of a fixed size... committer: Markus Bröker diff --git a/pmc/cube.cc b/pmc/cube.cc --- a/pmc/cube.cc +++ b/pmc/cube.cc @@ -32,12 +32,8 @@ void Cube::move (Vector location) { - Vector *p_tmp; - for (int i = 0; i < 8; i++) { - p_tmp = new Vector (*P[i] + location); - delete P[i]; - P[i] = p_tmp; + *P[i] = *P[i] + location; } }