poppler/StructTreeRoot.cc | 1 -
1 file changed, 1 deletion(-)
New commits:
commit 2e750862ed5cba42fba2c6dd953820445d9c64cb
Author: Albert Astals Cid <[email protected]>
Date: Mon May 7 19:02:40 2018 +0200
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
diff --git a/poppler/StructTreeRoot.cc b/poppler/StructTreeRoot.cc
index 9a53d9c9..58a4b6a6 100644
--- a/poppler/StructTreeRoot.cc
+++ b/poppler/StructTreeRoot.cc
@@ -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()) {
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler