summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/formfiller
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-11-04 18:17:53 -0800
committerLei Zhang <thestig@chromium.org>2015-11-04 18:17:53 -0800
commit997de6127fe4dd0f6df3ca72676e31311c3d66bd (patch)
treec24c58d6783a529dbfea6d9fce868c6e79cecdb5 /fpdfsdk/src/formfiller
parent79e893a1d0f2083f17c40ccadf2cc1250aad5a14 (diff)
downloadpdfium-997de6127fe4dd0f6df3ca72676e31311c3d66bd.tar.xz
Merge to XFA: Cleanup: Remove some NULL checks in fpdfsdk.
And simplify code. TBR=ochang@chromium.org Review URL: https://codereview.chromium.org/1411663013 . (cherry picked from commit ff5adbc0dfa71270a9979f0c3e1d27923c16218a) Review URL: https://codereview.chromium.org/1414793016 .
Diffstat (limited to 'fpdfsdk/src/formfiller')
-rw-r--r--fpdfsdk/src/formfiller/FFL_IFormFiller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/formfiller/FFL_IFormFiller.cpp b/fpdfsdk/src/formfiller/FFL_IFormFiller.cpp
index 6ef8785636..df3d04869c 100644
--- a/fpdfsdk/src/formfiller/FFL_IFormFiller.cpp
+++ b/fpdfsdk/src/formfiller/FFL_IFormFiller.cpp
@@ -569,7 +569,7 @@ CFFL_FormFiller* CFFL_IFormFiller::GetFormFiller(CPDFSDK_Annot* pAnnot,
}
void CFFL_IFormFiller::RemoveFormFiller(CPDFSDK_Annot* pAnnot) {
- if (pAnnot != NULL) {
+ if (pAnnot) {
UnRegisterFormFiller(pAnnot);
}
}