Commit 2e750862 authored by Albert Astals Cid's avatar Albert Astals Cid

Remove useless memset

Parent already has a proper constructor that initializes stuff and on top of that the sizeof was of the pointer and not of the class itself
parent 030c6123
......@@ -147,7 +147,6 @@ void StructTreeRoot::parseNumberTreeNode(Dict *node)
Object value = nums.arrayGet(i + 1);
if (value.isArray()) {
vec.resize(value.arrayGetLength());
memset(vec.data(), 0, vec.size()*sizeof(Parent*));
for (int j = 0; j < value.arrayGetLength(); j++) {
Object itemvalue = value.arrayGetNF(j);
if (itemvalue.isRef()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment