diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-12-14 19:48:44 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-14 19:48:44 +0000 |
commit | dcbb8e53e604178dc97d12846ddbdef88be41297 (patch) | |
tree | dc58158143f2a6a590007dfe137e7053b25357e5 /xfa/fxfa/parser/cxfa_widgetdata.cpp | |
parent | fe9d640ea90cfccac39b6475dad9df62072542fc (diff) | |
download | pdfium-dcbb8e53e604178dc97d12846ddbdef88be41297.tar.xz |
Fold CXFA_ValidateData into CXFA_Validate
The ValidateData class is a thin wrapper around the Validate class. Now
that the Validate class exists we can fold the methods from ValidateData
into Validate.
Change-Id: I1e72f4b7bddeb22a311f4fe9a5940204221b6d2a
Reviewed-on: https://pdfium-review.googlesource.com/21150
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_widgetdata.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_widgetdata.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_widgetdata.cpp b/xfa/fxfa/parser/cxfa_widgetdata.cpp index 4ba6b418de..58c934132c 100644 --- a/xfa/fxfa/parser/cxfa_widgetdata.cpp +++ b/xfa/fxfa/parser/cxfa_widgetdata.cpp @@ -15,6 +15,7 @@ #include "xfa/fxfa/parser/cxfa_localevalue.h" #include "xfa/fxfa/parser/cxfa_measurement.h" #include "xfa/fxfa/parser/cxfa_node.h" +#include "xfa/fxfa/parser/cxfa_validate.h" #include "xfa/fxfa/parser/xfa_utils.h" namespace { @@ -311,8 +312,8 @@ CXFA_CalculateData CXFA_WidgetData::GetCalculateData() { m_pNode->JSObject()->GetProperty(0, XFA_Element::Calculate, false)); } -CXFA_ValidateData CXFA_WidgetData::GetValidateData(bool bModified) { - return CXFA_ValidateData( +CXFA_Validate* CXFA_WidgetData::GetValidate(bool bModified) { + return static_cast<CXFA_Validate*>( m_pNode->JSObject()->GetProperty(0, XFA_Element::Validate, bModified)); } |