diff options
author | Albert Astals Cid <aacid@kde.org> | 2018-01-09 19:47:29 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2018-01-09 19:47:29 +0100 |
commit | c2711874a4afc00448c21e86fdaf0b7aec40b623 (patch) | |
tree | 42632d93599b2fe5d385244cf70bd036de5490ea /poppler/StructTreeRoot.h | |
parent | 30ccee028213efcf3d3a103ae6003bdcd15e1126 (diff) |
Fix another clazy rule-of-three warning
We can just use the default copy assignemnt and constructor for Parent
Diffstat (limited to 'poppler/StructTreeRoot.h')
-rw-r--r-- | poppler/StructTreeRoot.h | 6 |
1 files changed, 2 insertions, 4 deletions
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() {} }; |