poppler/StructTreeRoot.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit c2711874a4afc00448c21e86fdaf0b7aec40b623 Author: Albert Astals Cid <[email protected]> Date: Tue Jan 9 19:47:29 2018 +0100 Fix another clazy rule-of-three warning We can just use the default copy assignemnt and constructor for Parent diff --git a/poppler/StructTreeRoot.h b/poppler/StructTreeRoot.h index 448b5f5f..cd94a472 100644 --- a/poppler/StructTreeRoot.h +++ b/poppler/StructTreeRoot.h @@ -68,10 +68,8 @@ private: StructElement *element; Parent(): element(nullptr) { ref.num = ref.gen = -1; } - Parent(const Parent &p): element(p.element) { - ref.num = p.ref.num; - ref.gen = p.ref.gen; - } + Parent(const Parent &p) = default; + Parent& operator=(const Parent &) = default; ~Parent() {} }; _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
