From 017052a077d8f900e3098b8f9115078a037ee805 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Tue, 28 Jun 2016 07:43:51 -0700 Subject: Change CXFA_Node::GetClassName to return 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 --- xfa/fxfa/parser/xfa_script_nodehelper.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'xfa/fxfa/parser/xfa_script_nodehelper.cpp') 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; -- cgit v1.2.3