diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-10 18:38:03 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-10 18:38:03 +0000 |
commit | 461acb276e1c38c9ebb3546c5b3254fa5cf9c585 (patch) | |
tree | 1680a982413c0fc199af16392772e261fec97a71 /fpdfsdk/cpdfsdk_widgethandler.cpp | |
parent | 8d8d3bc54593d2d86054d59669b86a959ec0b602 (diff) | |
download | pdfium-461acb276e1c38c9ebb3546c5b3254fa5cf9c585.tar.xz |
Remove impossible nullptr checks in CPDFSDK_InterForm.
Also remove dead code and move initialization to headers in
CPDFSDK_InterForm.
Change-Id: Ib75864ccfd3f1d0d255d9c7942cc610edce822a3
Reviewed-on: https://pdfium-review.googlesource.com/c/43599
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_widgethandler.cpp')
-rw-r--r-- | fpdfsdk/cpdfsdk_widgethandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/cpdfsdk_widgethandler.cpp b/fpdfsdk/cpdfsdk_widgethandler.cpp index 70d0397b3c..b67a92d29f 100644 --- a/fpdfsdk/cpdfsdk_widgethandler.cpp +++ b/fpdfsdk/cpdfsdk_widgethandler.cpp @@ -62,7 +62,7 @@ CPDFSDK_Annot* CPDFSDK_WidgetHandler::NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_Widget* pWidget = new CPDFSDK_Widget(pAnnot, pPage, pInterForm); pInterForm->AddMap(pCtrl, pWidget); CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm(); - if (pPDFInterForm && pPDFInterForm->NeedConstructAP()) + if (pPDFInterForm->NeedConstructAP()) pWidget->ResetAppearance(nullptr, false); return pWidget; |