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

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

Issue 1414793016: Merge to XFA: Cleanup: Remove some NULL checks in fpdfsdk. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 1 month 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 | « no previous file | fpdfsdk/src/fpdfeditpage.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 "../../include/formfiller/FFL_FormFiller.h" 7 #include "../../include/formfiller/FFL_FormFiller.h"
8 #include "../../include/formfiller/FFL_IFormFiller.h" 8 #include "../../include/formfiller/FFL_IFormFiller.h"
9 #include "../../include/formfiller/FFL_CheckBox.h" 9 #include "../../include/formfiller/FFL_CheckBox.h"
10 #include "../../include/formfiller/FFL_ComboBox.h" 10 #include "../../include/formfiller/FFL_ComboBox.h"
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 } 562 }
563 563
564 if (!pFormFiller) 564 if (!pFormFiller)
565 return nullptr; 565 return nullptr;
566 566
567 m_Maps[pAnnot] = pFormFiller; 567 m_Maps[pAnnot] = pFormFiller;
568 return pFormFiller; 568 return pFormFiller;
569 } 569 }
570 570
571 void CFFL_IFormFiller::RemoveFormFiller(CPDFSDK_Annot* pAnnot) { 571 void CFFL_IFormFiller::RemoveFormFiller(CPDFSDK_Annot* pAnnot) {
572 if (pAnnot != NULL) { 572 if (pAnnot) {
573 UnRegisterFormFiller(pAnnot); 573 UnRegisterFormFiller(pAnnot);
574 } 574 }
575 } 575 }
576 576
577 void CFFL_IFormFiller::UnRegisterFormFiller(CPDFSDK_Annot* pAnnot) { 577 void CFFL_IFormFiller::UnRegisterFormFiller(CPDFSDK_Annot* pAnnot) {
578 auto it = m_Maps.find(pAnnot); 578 auto it = m_Maps.find(pAnnot);
579 if (it == m_Maps.end()) 579 if (it == m_Maps.end())
580 return; 580 return;
581 581
582 delete it->second; 582 delete it->second;
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 bExit = TRUE; 1069 bExit = TRUE;
1070 m_bNotifying = FALSE; 1070 m_bNotifying = FALSE;
1071 return; 1071 return;
1072 } 1072 }
1073 } 1073 }
1074 1074
1075 m_bNotifying = FALSE; 1075 m_bNotifying = FALSE;
1076 } 1076 }
1077 } 1077 }
1078 } 1078 }
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/src/fpdfeditpage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698