diff options
Diffstat (limited to 'xfa/fxfa/parser/cxfa_nodelocale.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_nodelocale.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_nodelocale.cpp b/xfa/fxfa/parser/cxfa_nodelocale.cpp index 5031216de9..92a676a762 100644 --- a/xfa/fxfa/parser/cxfa_nodelocale.cpp +++ b/xfa/fxfa/parser/cxfa_nodelocale.cpp @@ -136,13 +136,12 @@ WideString CXFA_NodeLocale::GetNumPattern(FX_LOCALENUMSUBCATEGORY eType) const { CXFA_Node* CXFA_NodeLocale::GetNodeByName(CXFA_Node* pParent, const WideStringView& wsName) const { - CXFA_Node* pChild = - pParent ? pParent->GetNodeItem(XFA_NODEITEM_FirstChild) : nullptr; + CXFA_Node* pChild = pParent ? pParent->GetFirstChild() : nullptr; while (pChild) { if (pChild->JSObject()->GetAttribute(XFA_Attribute::Name) == wsName) return pChild; - pChild = pChild->GetNodeItem(XFA_NODEITEM_NextSibling); + pChild = pChild->GetNextSibling(); } return nullptr; } |