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

Side by Side Diff: fpdfsdk/formfiller/cffl_iformfiller.cpp

Issue 2031653003: Get rid of NULLs in fpdfsdk/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_core
Patch Set: rebase Created 4 years, 6 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/formfiller/cffl_formfiller.cpp ('k') | fpdfsdk/formfiller/cffl_listbox.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/formfiller/cffl_iformfiller.h" 7 #include "fpdfsdk/formfiller/cffl_iformfiller.h"
8 8
9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" 9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h"
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 } 91 }
92 return; 92 return;
93 } 93 }
94 } 94 }
95 95
96 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) { 96 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) {
97 pFormFiller->OnDrawDeactive(pPageView, pAnnot, pDevice, pUser2Device, 97 pFormFiller->OnDrawDeactive(pPageView, pAnnot, pDevice, pUser2Device,
98 dwFlags); 98 dwFlags);
99 } else { 99 } else {
100 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL); 100 pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, nullptr);
101 } 101 }
102 102
103 if (!IsReadOnly(pWidget) && IsFillingAllowed(pWidget)) 103 if (!IsReadOnly(pWidget) && IsFillingAllowed(pWidget))
104 pWidget->DrawShadow(pDevice, pPageView); 104 pWidget->DrawShadow(pDevice, pPageView);
105 } 105 }
106 106
107 void CFFL_IFormFiller::OnCreate(CPDFSDK_Annot* pAnnot) { 107 void CFFL_IFormFiller::OnCreate(CPDFSDK_Annot* pAnnot) {
108 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) { 108 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE)) {
109 pFormFiller->OnCreate(pAnnot); 109 pFormFiller->OnCreate(pAnnot);
110 } 110 }
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 bExit = TRUE; 1008 bExit = TRUE;
1009 m_bNotifying = FALSE; 1009 m_bNotifying = FALSE;
1010 return; 1010 return;
1011 } 1011 }
1012 } 1012 }
1013 1013
1014 m_bNotifying = FALSE; 1014 m_bNotifying = FALSE;
1015 } 1015 }
1016 } 1016 }
1017 } 1017 }
OLDNEW
« no previous file with comments | « fpdfsdk/formfiller/cffl_formfiller.cpp ('k') | fpdfsdk/formfiller/cffl_listbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698