diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-06-29 23:18:09 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-29 23:18:09 +0000 |
commit | 09646f2d0497eb4cdcf2f3843585faa9264196f4 (patch) | |
tree | 82b6ec32ab2edd616a1ea99b11ef8459bef7efaf /xfa/fxfa/parser/cxfa_attachnodelist.h | |
parent | 0894dc84013cd6a814136ccd40f585fc2eb895f3 (diff) | |
download | pdfium-09646f2d0497eb4cdcf2f3843585faa9264196f4.tar.xz |
Use UnownedPtr<CXFA_Node> or comment raw pointers as tree nodes.chromium/3479chromium/3478
Part 2.
Change-Id: I26fe434dac3c3f5186414440acc2a495a5f14091
Reviewed-on: https://pdfium-review.googlesource.com/36670
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_attachnodelist.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_attachnodelist.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_attachnodelist.h b/xfa/fxfa/parser/cxfa_attachnodelist.h index cb41b73797..f4cebe48f8 100644 --- a/xfa/fxfa/parser/cxfa_attachnodelist.h +++ b/xfa/fxfa/parser/cxfa_attachnodelist.h @@ -15,6 +15,7 @@ class CXFA_Node; class CXFA_AttachNodeList : public CXFA_TreeList { public: CXFA_AttachNodeList(CXFA_Document* pDocument, CXFA_Node* pAttachNode); + ~CXFA_AttachNodeList() override; // From CXFA_TreeList. size_t GetLength() override; @@ -24,7 +25,7 @@ class CXFA_AttachNodeList : public CXFA_TreeList { CXFA_Node* Item(size_t iIndex) override; private: - CXFA_Node* m_pAttachNode; + UnownedPtr<CXFA_Node> const m_pAttachNode; }; #endif // XFA_FXFA_PARSER_CXFA_ATTACHNODELIST_H_ |