[poppler] poppler/StructTreeRoot.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Mon May 7 17:03:39 UTC 2018
poppler/StructTreeRoot.cc | 1 -
1 file changed, 1 deletion(-)
New commits:
commit 2e750862ed5cba42fba2c6dd953820445d9c64cb
Author: Albert Astals Cid <aacid at kde.org>
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()) {
More information about the poppler
mailing list