diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-02-06 18:31:48 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-06 18:31:48 +0000 |
commit | 6556be05e041e97b29eae8166c60eb83af7f5bd2 (patch) | |
tree | f1eb1b253d0d4ade89e6126a69c09103b7e01cf8 /xfa/fxfa/parser/cxfa_node.h | |
parent | 6bf5789c25686bf6ea1bc1f7c8ef2dc7e4bbc212 (diff) | |
download | pdfium-6556be05e041e97b29eae8166c60eb83af7f5bd2.tar.xz |
Make the CXFA_Node parent pointer Unowned
This CL converts the CXFA_Node parent pointer to be an Unowned pointer
instead of a raw pointer.
Bug: chromium:807863
Change-Id: I266c9216cfe8153e234bf66b88fbac6c8d96ebb4
Reviewed-on: https://pdfium-review.googlesource.com/25650
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_node.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h index 22b5192264..27bdab0195 100644 --- a/xfa/fxfa/parser/cxfa_node.h +++ b/xfa/fxfa/parser/cxfa_node.h @@ -181,7 +181,7 @@ class CXFA_Node : public CXFA_Object { CXFA_Node* GetNextSibling() const { return m_pNext; } CXFA_Node* GetPrevSibling() const; CXFA_Node* GetFirstChild() const { return m_pChild; } - CXFA_Node* GetParent() const { return m_pParent; } + CXFA_Node* GetParent() const { return parent_.Get(); } CXFA_Node* GetNextContainerSibling() const; CXFA_Node* GetPrevContainerSibling() const; @@ -495,7 +495,7 @@ class CXFA_Node : public CXFA_Object { CXFA_Node* m_pNext; CXFA_Node* m_pChild; CXFA_Node* m_pLastChild; - CXFA_Node* m_pParent; + UnownedPtr<CXFA_Node> parent_; CFX_XMLNode* m_pXMLNode; const XFA_PacketType m_ePacket; uint8_t m_ExecuteRecursionDepth = 0; |