diff options
author | dsinclair <dsinclair@chromium.org> | 2016-06-28 07:43:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-28 07:43:51 -0700 |
commit | 017052a077d8f900e3098b8f9115078a037ee805 (patch) | |
tree | 849af68a530e45ba66d9333393789dcec0f6561c /xfa/fxfa/parser/xfa_script_nodehelper.cpp | |
parent | 2d6dda170d84564f6ca5845ea934a886ac9bf746 (diff) | |
download | pdfium-017052a077d8f900e3098b8f9115078a037ee805.tar.xz |
Change CXFA_Node::GetClassName to returnchromium/2786chromium/2784
CXFA_Node::GetClassName currently takes an out parameter and returns void. This
CL updates the signature to return the value and require no parameters.
Review-Url: https://codereview.chromium.org/2104963002
Diffstat (limited to 'xfa/fxfa/parser/xfa_script_nodehelper.cpp')
-rw-r--r-- | xfa/fxfa/parser/xfa_script_nodehelper.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/xfa_script_nodehelper.cpp b/xfa/fxfa/parser/xfa_script_nodehelper.cpp index e866a1923d..3a80d89a94 100644 --- a/xfa/fxfa/parser/xfa_script_nodehelper.cpp +++ b/xfa/fxfa/parser/xfa_script_nodehelper.cpp @@ -284,13 +284,11 @@ void CXFA_NodeHelper::XFA_GetNameExpression(CXFA_Node* refNode, return; } - CFX_WideStringC wsTagName; CFX_WideString ws; FX_BOOL bIsProperty = XFA_NodeIsProperty(refNode); if (refNode->IsUnnamed() || (bIsProperty && refNode->GetElementType() != XFA_Element::PageSet)) { - refNode->GetClassName(wsTagName); - ws = wsTagName; + ws = refNode->GetClassName(); wsName.Format(L"#%s[%d]", ws.c_str(), XFA_GetIndex(refNode, eLogicType, bIsProperty, TRUE)); return; |