Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: fpdfsdk/src/formfiller/FFL_RadioButton.cpp

Issue 1783023002: Re-enable MSVC warning 4800 for compiling with chromium_code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: remove cast change on security_handler file Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_CheckBox.cpp ('k') | fpdfsdk/src/fpdfsave.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "fpdfsdk/include/formfiller/FFL_RadioButton.h" 7 #include "fpdfsdk/include/formfiller/FFL_RadioButton.h"
8 8
9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h" 9 #include "fpdfsdk/include/formfiller/FFL_FormFiller.h"
10 #include "fpdfsdk/include/fsdk_mgr.h" 10 #include "fpdfsdk/include/fsdk_mgr.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 (CPWL_RadioButton*)GetPDFWindow(pPageView, FALSE)) { 94 (CPWL_RadioButton*)GetPDFWindow(pPageView, FALSE)) {
95 return pWnd->IsChecked() != m_pWidget->IsChecked(); 95 return pWnd->IsChecked() != m_pWidget->IsChecked();
96 } 96 }
97 97
98 return FALSE; 98 return FALSE;
99 } 99 }
100 100
101 void CFFL_RadioButton::SaveData(CPDFSDK_PageView* pPageView) { 101 void CFFL_RadioButton::SaveData(CPDFSDK_PageView* pPageView) {
102 if (CPWL_RadioButton* pWnd = 102 if (CPWL_RadioButton* pWnd =
103 (CPWL_RadioButton*)GetPDFWindow(pPageView, FALSE)) { 103 (CPWL_RadioButton*)GetPDFWindow(pPageView, FALSE)) {
104 FX_BOOL bNewChecked = pWnd->IsChecked(); 104 bool bNewChecked = pWnd->IsChecked();
105 105
106 if (bNewChecked) { 106 if (bNewChecked) {
107 CPDF_FormField* pField = m_pWidget->GetFormField(); 107 CPDF_FormField* pField = m_pWidget->GetFormField();
108 for (int32_t i = 0, sz = pField->CountControls(); i < sz; i++) { 108 for (int32_t i = 0, sz = pField->CountControls(); i < sz; i++) {
109 if (CPDF_FormControl* pCtrl = pField->GetControl(i)) { 109 if (CPDF_FormControl* pCtrl = pField->GetControl(i)) {
110 if (pCtrl->IsChecked()) { 110 if (pCtrl->IsChecked()) {
111 break; 111 break;
112 } 112 }
113 } 113 }
114 } 114 }
115 } 115 }
116 116
117 m_pWidget->SetCheck(bNewChecked, FALSE); 117 m_pWidget->SetCheck(bNewChecked, false);
118 m_pWidget->UpdateField(); 118 m_pWidget->UpdateField();
119 SetChangeMark(); 119 SetChangeMark();
120 } 120 }
121 } 121 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_CheckBox.cpp ('k') | fpdfsdk/src/fpdfsave.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698