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_document_serialize.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_document_serialize.cpp')
-rw-r--r-- | xfa/fxfa/parser/xfa_document_serialize.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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; |