summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/xfa_document_datamerger_imp.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-03 16:58:06 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-04 14:48:52 +0000
commit4cf0589c4bc388781cbfc8459c4904bb2bd947bf (patch)
tree5bc9da1f2abffbbf9ec91271f7765983e65d1c0d /xfa/fxfa/parser/xfa_document_datamerger_imp.cpp
parente83a915ebd3afaa897dbbf3e6cb3d2a2cb198595 (diff)
downloadpdfium-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.cpp8
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);