diff options
Diffstat (limited to 'xfa/fxfa/parser/cxfa_nodelocale.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_nodelocale.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xfa/fxfa/parser/cxfa_nodelocale.cpp b/xfa/fxfa/parser/cxfa_nodelocale.cpp index 25086922a7..da64c4a04c 100644 --- a/xfa/fxfa/parser/cxfa_nodelocale.cpp +++ b/xfa/fxfa/parser/cxfa_nodelocale.cpp @@ -135,11 +135,9 @@ CXFA_Node* CXFA_NodeLocale::GetNodeByName(CXFA_Node* pParent, CXFA_Node* pChild = pParent ? pParent->GetNodeItem(XFA_NODEITEM_FirstChild) : nullptr; while (pChild) { - WideString wsChild; - if (pChild->JSNode()->GetAttribute(XFA_Attribute::Name, wsChild, true)) { - if (wsChild == wsName) - return pChild; - } + if (pChild->JSNode()->GetAttribute(XFA_Attribute::Name) == wsName) + return pChild; + pChild = pChild->GetNodeItem(XFA_NODEITEM_NextSibling); } return nullptr; |