From 09646f2d0497eb4cdcf2f3843585faa9264196f4 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 29 Jun 2018 23:18:09 +0000 Subject: Use UnownedPtr or comment raw pointers as tree nodes. Part 2. Change-Id: I26fe434dac3c3f5186414440acc2a495a5f14091 Reviewed-on: https://pdfium-review.googlesource.com/36670 Commit-Queue: Tom Sepez Reviewed-by: Lei Zhang --- xfa/fxfa/parser/cxfa_attachnodelist.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xfa/fxfa/parser/cxfa_attachnodelist.cpp') diff --git a/xfa/fxfa/parser/cxfa_attachnodelist.cpp b/xfa/fxfa/parser/cxfa_attachnodelist.cpp index 4e6a678162..e7d4c1d04a 100644 --- a/xfa/fxfa/parser/cxfa_attachnodelist.cpp +++ b/xfa/fxfa/parser/cxfa_attachnodelist.cpp @@ -11,9 +11,9 @@ CXFA_AttachNodeList::CXFA_AttachNodeList(CXFA_Document* pDocument, CXFA_Node* pAttachNode) - : CXFA_TreeList(pDocument) { - m_pAttachNode = pAttachNode; -} + : CXFA_TreeList(pDocument), m_pAttachNode(pAttachNode) {} + +CXFA_AttachNodeList::~CXFA_AttachNodeList() = default; size_t CXFA_AttachNodeList::GetLength() { return m_pAttachNode->CountChildren( -- cgit v1.2.3