summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_widget.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-13 16:14:26 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-13 16:14:26 +0000
commit5f032995b3d7f874eafbd9dc4a56e8f08fbfa87d (patch)
tree05b80131ca245b0eb9b64d9be4ca18ed37ccebda /fpdfsdk/cpdfsdk_widget.cpp
parent81a3085b250deafd18a2183a311cc57e2ec1c6f0 (diff)
downloadpdfium-5f032995b3d7f874eafbd9dc4a56e8f08fbfa87d.tar.xz
CPDFSDK_Widget(): bDisplay arg always passed as true (default).
So remove it and combine the XFA/non-XFA cases. Change-Id: I13d718de13ec31bf4f5c045164ea5791bf22f92d Reviewed-on: https://pdfium-review.googlesource.com/35050 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_widget.cpp')
-rw-r--r--fpdfsdk/cpdfsdk_widget.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/fpdfsdk/cpdfsdk_widget.cpp b/fpdfsdk/cpdfsdk_widget.cpp
index cd863bda2c..f9fdef829b 100644
--- a/fpdfsdk/cpdfsdk_widget.cpp
+++ b/fpdfsdk/cpdfsdk_widget.cpp
@@ -456,17 +456,13 @@ int CPDFSDK_Widget::GetSelectedIndex(int nIndex) const {
return pFormField->GetSelectedIndex(nIndex);
}
+WideString CPDFSDK_Widget::GetValue() const {
#ifdef PDF_ENABLE_XFA
-WideString CPDFSDK_Widget::GetValue(bool bDisplay) const {
if (CXFA_FFWidget* hWidget = GetMixXFAWidget()) {
CXFA_Node* node = hWidget->GetNode();
- if (node->IsWidgetReady()) {
- return node->GetValue(bDisplay ? XFA_VALUEPICTURE_Display
- : XFA_VALUEPICTURE_Edit);
- }
+ if (node->IsWidgetReady())
+ return node->GetValue(XFA_VALUEPICTURE_Display);
}
-#else // PDF_ENABLE_XFA
-WideString CPDFSDK_Widget::GetValue() const {
#endif // PDF_ENABLE_XFA
CPDF_FormField* pFormField = GetFormField();
return pFormField->GetValue();