diff options
author | thestig <thestig@chromium.org> | 2016-05-26 22:00:29 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-26 22:00:29 -0700 |
commit | 800222e01e3fcdd57536fc987e773677829dd708 (patch) | |
tree | 2c7e62ba05fa9855de3090dbab6f61169055372b /fpdfsdk/fsdk_baseform.cpp | |
parent | befa4506dc9d2a679c526aff96c09bcb0e9daecb (diff) | |
download | pdfium-800222e01e3fcdd57536fc987e773677829dd708.tar.xz |
Fix MSVC C4800 build warnings.
TBR=weili@chromium.org
Review-Url: https://codereview.chromium.org/2017863002
Diffstat (limited to 'fpdfsdk/fsdk_baseform.cpp')
-rw-r--r-- | fpdfsdk/fsdk_baseform.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/fsdk_baseform.cpp b/fpdfsdk/fsdk_baseform.cpp index ea21511b8e..0f1a0ad0d1 100644 --- a/fpdfsdk/fsdk_baseform.cpp +++ b/fpdfsdk/fsdk_baseform.cpp @@ -267,7 +267,7 @@ void CPDFSDK_Widget::Synchronize(FX_BOOL bSynchronizeElse) { CPDF_FormControl* pFormCtrl = GetFormControl(); XFA_CHECKSTATE eCheckState = pFormCtrl->IsChecked() ? XFA_CHECKSTATE_On : XFA_CHECKSTATE_Off; - pWidgetAcc->SetCheckState(eCheckState); + pWidgetAcc->SetCheckState(eCheckState, true); } break; case FIELDTYPE_TEXTFIELD: pWidgetAcc->SetValue(pFormField->GetValue(), XFA_VALUEPICTURE_Edit); @@ -278,7 +278,7 @@ void CPDFSDK_Widget::Synchronize(FX_BOOL bSynchronizeElse) { for (int i = 0, sz = pFormField->CountSelectedItems(); i < sz; i++) { int nIndex = pFormField->GetSelectedIndex(i); if (nIndex > -1 && nIndex < pWidgetAcc->CountChoiceListItems()) - pWidgetAcc->SetItemState(nIndex, TRUE, FALSE); + pWidgetAcc->SetItemState(nIndex, TRUE, false, FALSE, TRUE); } } break; case FIELDTYPE_COMBOBOX: { @@ -287,7 +287,7 @@ void CPDFSDK_Widget::Synchronize(FX_BOOL bSynchronizeElse) { for (int i = 0, sz = pFormField->CountSelectedItems(); i < sz; i++) { int nIndex = pFormField->GetSelectedIndex(i); if (nIndex > -1 && nIndex < pWidgetAcc->CountChoiceListItems()) - pWidgetAcc->SetItemState(nIndex, TRUE, FALSE); + pWidgetAcc->SetItemState(nIndex, TRUE, false, FALSE, TRUE); } } |