diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-12-14 20:09:43 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-14 20:09:43 +0000 |
commit | 0821c95ee9f132f77f3670a7dbbf114a82a6b9a0 (patch) | |
tree | fd736c2764ee7b1e187995548a608ed431601ac7 /xfa/fxfa/parser/cxfa_captiondata.cpp | |
parent | dcbb8e53e604178dc97d12846ddbdef88be41297 (diff) | |
download | pdfium-0821c95ee9f132f77f3670a7dbbf114a82a6b9a0.tar.xz |
Fold CXFA_ValueData into CXFA_Value
The CXFA_ValueData class is a thin wrapper around the CXFA_Value, this
CL moves the methods from CXFA_ValueData into CXFA_Value.
Change-Id: I2c57e93e5c4675b82af71cf75f2dfc0fb12e4b20
Reviewed-on: https://pdfium-review.googlesource.com/21170
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_captiondata.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_captiondata.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_captiondata.cpp b/xfa/fxfa/parser/cxfa_captiondata.cpp index 6d9f02b1ab..e48e5f34bb 100644 --- a/xfa/fxfa/parser/cxfa_captiondata.cpp +++ b/xfa/fxfa/parser/cxfa_captiondata.cpp @@ -8,6 +8,7 @@ #include "xfa/fxfa/parser/cxfa_measurement.h" #include "xfa/fxfa/parser/cxfa_node.h" +#include "xfa/fxfa/parser/cxfa_value.h" CXFA_CaptionData::CXFA_CaptionData(CXFA_Node* pNode) : CXFA_DataData(pNode) {} @@ -46,7 +47,8 @@ CXFA_FontData CXFA_CaptionData::GetFontData() const { : nullptr); } -CXFA_ValueData CXFA_CaptionData::GetValueData() const { - return CXFA_ValueData( - m_pNode ? m_pNode->GetChild(0, XFA_Element::Value, false) : nullptr); +CXFA_Value* CXFA_CaptionData::GetValue() const { + return m_pNode ? static_cast<CXFA_Value*>( + m_pNode->GetChild(0, XFA_Element::Value, false)) + : nullptr; } |