Remove two more memset for cleanliness.

pull/1162/head
Ryan Pavlik 2021-12-23 16:43:49 -06:00
parent 0e8d49b93c
commit 0063a1dee2
1 changed files with 4 additions and 4 deletions

View File

@ -261,8 +261,8 @@ void GraphicsWindow::MakeTangentArc() {
// in our group and workplane) that generate entities that have an // in our group and workplane) that generate entities that have an
// endpoint at our vertex to be rounded. // endpoint at our vertex to be rounded.
int i, c = 0; int i, c = 0;
Entity *ent[2]; std::array<Entity *, 2> ent;
Request *req[2]; std::array<Request *, 2> req;
hRequest hreq[2]; hRequest hreq[2];
hEntity hent[2]; hEntity hent[2];
bool pointf[2]; bool pointf[2];
@ -314,8 +314,8 @@ void GraphicsWindow::MakeTangentArc() {
// And thereafter we mustn't touch the entity or req ptrs, // And thereafter we mustn't touch the entity or req ptrs,
// because the new requests/entities we add might force a // because the new requests/entities we add might force a
// realloc. // realloc.
memset(ent, 0, sizeof(ent)); ent.fill(nullptr);
memset(req, 0, sizeof(req)); req.fill(nullptr);
Vector pinter; Vector pinter;
double r = 0.0, vv = 0.0; double r = 0.0, vv = 0.0;