summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_node.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-01 17:35:48 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-01 17:35:48 +0000
commit42c4ed3ee05f318f66635b18ca5e498c5bd25dd2 (patch)
treef5f6f21efc94d2e3fa49791f595ea9d50da8d029 /xfa/fxfa/parser/cxfa_node.h
parent673af68584b6ada36682c33acddfea2bcd749030 (diff)
downloadpdfium-42c4ed3ee05f318f66635b18ca5e498c5bd25dd2.tar.xz
Initialize more CXFA_Node members in the header.
And remove some unnecessary casts. Change-Id: Ifbc78e7b399ce668c92122c8c45d5995b599c971 Reviewed-on: https://pdfium-review.googlesource.com/43193 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_node.h')
-rw-r--r--xfa/fxfa/parser/cxfa_node.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h
index 3b3345b562..ab06b4b4b7 100644
--- a/xfa/fxfa/parser/cxfa_node.h
+++ b/xfa/fxfa/parser/cxfa_node.h
@@ -494,18 +494,18 @@ class CXFA_Node : public CXFA_Object {
// pointers within the tree (or in objects owned by nodes in the tree)
// can't be UnownedPtr<> because the cleanup process will remove the nodes
// in an order that doesn't necessarily match up to the tree structure.
- CXFA_Node* parent_; // Raw, intra-tree node pointer.
- CXFA_Node* next_sibling_; // Raw, intra-tree node pointer.
- CXFA_Node* prev_sibling_; // Raw, intra-tree node pointer.
- CXFA_Node* first_child_; // Raw, intra-tree node pointer.
- CXFA_Node* last_child_; // Raw, intra-tree node pointer.
+ CXFA_Node* parent_ = nullptr; // Raw, intra-tree node pointer.
+ CXFA_Node* next_sibling_ = nullptr; // Raw, intra-tree node pointer.
+ CXFA_Node* prev_sibling_ = nullptr; // Raw, intra-tree node pointer.
+ CXFA_Node* first_child_ = nullptr; // Raw, intra-tree node pointer.
+ CXFA_Node* last_child_ = nullptr; // Raw, intra-tree node pointer.
UnownedPtr<CFX_XMLNode> xml_node_;
const XFA_PacketType m_ePacket;
uint8_t m_ExecuteRecursionDepth = 0;
- uint16_t m_uNodeFlags;
- uint32_t m_dwNameHash;
- CXFA_Node* m_pAuxNode; // Raw, node tree cleanup order.
+ uint16_t m_uNodeFlags = XFA_NodeFlag_None;
+ uint32_t m_dwNameHash = 0;
+ CXFA_Node* m_pAuxNode = nullptr; // Raw, node tree cleanup order.
std::vector<UnownedPtr<CXFA_Node>> binding_nodes_;
bool m_bIsNull = true;
bool m_bPreNull = true;