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_document_serialize.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xfa/fxfa/parser/xfa_document_serialize.cpp') diff --git a/xfa/fxfa/parser/xfa_document_serialize.cpp b/xfa/fxfa/parser/xfa_document_serialize.cpp index 52aa58530e..febfa3e827 100644 --- a/xfa/fxfa/parser/xfa_document_serialize.cpp +++ b/xfa/fxfa/parser/xfa_document_serialize.cpp @@ -347,8 +347,7 @@ static void XFA_DataExporter_RegenerateFormFile_Changed( } if (!wsChildren.IsEmpty() || !wsAttrs.IsEmpty() || pNode->HasAttribute(XFA_ATTRIBUTE_Name)) { - CFX_WideStringC wsElement; - pNode->GetClassName(wsElement); + CFX_WideStringC wsElement = pNode->GetClassName(); CFX_WideString wsName; XFA_SaveAttribute(pNode, XFA_ATTRIBUTE_Name, FX_WSTRC(L"name"), TRUE, wsName); @@ -382,8 +381,7 @@ static void XFA_DataExporter_RegenerateFormFile_Container( } return; } - CFX_WideStringC wsElement; - pNode->GetClassName(wsElement); + CFX_WideStringC wsElement = pNode->GetClassName(); pStream->WriteString(L"<", 1); pStream->WriteString(wsElement.c_str(), wsElement.GetLength()); CFX_WideString wsOutput; -- cgit v1.2.3