diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-02-14 16:21:30 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-14 16:21:30 +0000 |
commit | 68dde3bce9bb5594b8c1320a0114ebc4be9d3ee7 (patch) | |
tree | b14c24b3ab4e8de4aed58beb24e838b047441086 /xfa/fxfa/parser/cxfa_node.cpp | |
parent | 2fa6441d686e1205eb25ed2cbfc4cf47d96efec6 (diff) | |
download | pdfium-68dde3bce9bb5594b8c1320a0114ebc4be9d3ee7.tar.xz |
Cleanup some CXFA_Node flags and methods.
This CL removes one unused flag and inlines the check for if the node
has an owned XML node.
Change-Id: Id750192b37f09901a81e2faaa929a81d2262d4c7
Reviewed-on: https://pdfium-review.googlesource.com/26770
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_node.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index 46e601d556..a534d6ee4f 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -537,7 +537,7 @@ CXFA_Node::CXFA_Node(CXFA_Document* pDoc, pdfium::MakeUnique<CJX_Node>(this)) {} CXFA_Node::~CXFA_Node() { - if (m_pXMLNode && IsOwnedXMLNode()) + if (m_pXMLNode && HasFlag(XFA_NodeFlag_OwnXMLNode)) delete m_pXMLNode; } |