diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-03 16:58:06 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-04 14:48:52 +0000 |
commit | 4cf0589c4bc388781cbfc8459c4904bb2bd947bf (patch) | |
tree | 5bc9da1f2abffbbf9ec91271f7765983e65d1c0d /xfa/fxfa/parser/xfa_document_datamerger_imp.cpp | |
parent | e83a915ebd3afaa897dbbf3e6cb3d2a2cb198595 (diff) | |
download | pdfium-4cf0589c4bc388781cbfc8459c4904bb2bd947bf.tar.xz |
Fold CXFA_ExDataData into CXFA_ExData
This CL removes the CXFA_ExDataData wrapper and puts the code in
CXFA_ExData directly.
Change-Id: I9406d615a09fb431b5c620ed348f9976cf8dc72a
Reviewed-on: https://pdfium-review.googlesource.com/22230
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/xfa_document_datamerger_imp.cpp')
-rw-r--r-- | xfa/fxfa/parser/xfa_document_datamerger_imp.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/xfa_document_datamerger_imp.cpp b/xfa/fxfa/parser/xfa_document_datamerger_imp.cpp index c98597f78e..8de905278e 100644 --- a/xfa/fxfa/parser/xfa_document_datamerger_imp.cpp +++ b/xfa/fxfa/parser/xfa_document_datamerger_imp.cpp @@ -18,6 +18,7 @@ #include "xfa/fxfa/parser/cxfa_bind.h" #include "xfa/fxfa/parser/cxfa_datagroup.h" #include "xfa/fxfa/parser/cxfa_document.h" +#include "xfa/fxfa/parser/cxfa_exdata.h" #include "xfa/fxfa/parser/cxfa_form.h" #include "xfa/fxfa/parser/cxfa_image.h" #include "xfa/fxfa/parser/cxfa_items.h" @@ -326,11 +327,10 @@ void CreateDataBinding(CXFA_Node* pFormNode, wsNormalizeValue += wsItem; } - CXFA_ExDataData exData = - defValue ? defValue->GetExData() : CXFA_ExDataData(nullptr); - ASSERT(exData.HasValidNode()); + CXFA_ExData* exData = defValue ? defValue->GetExData() : nullptr; + ASSERT(exData); - exData.SetContentType(single ? L"text/plain" : L"text/xml"); + exData->SetContentType(single ? L"text/plain" : L"text/xml"); } FormValueNode_SetChildContent(defValue, wsNormalizeValue, XFA_Element::ExData); |