summaryrefslogtreecommitdiff
path: root/fpdfsdk/formfiller/cffl_formfiller.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-06-13 18:44:03 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-06-15 18:55:32 +0000
commitb7384b5b997975c36bb37d25c63e2c900eca41f9 (patch)
treeeb95123cbe4992e99bad352626ac3e616cefd01e /fpdfsdk/formfiller/cffl_formfiller.cpp
parentcd8ff7e9eb651a2ab78bd17a7d8a6cc6d9cce9c4 (diff)
downloadpdfium-b7384b5b997975c36bb37d25c63e2c900eca41f9.tar.xz
Improve ObserverPtr usage in CFFL_InteractiveFormFiller.
BUG=chromium:732322 Change-Id: I479f3edf48fcb2cac32d7fcb76651f9ad1246483 Reviewed-on: https://pdfium-review.googlesource.com/6553 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/formfiller/cffl_formfiller.cpp')
-rw-r--r--fpdfsdk/formfiller/cffl_formfiller.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/formfiller/cffl_formfiller.cpp b/fpdfsdk/formfiller/cffl_formfiller.cpp
index cd531413c2..297d5b78d6 100644
--- a/fpdfsdk/formfiller/cffl_formfiller.cpp
+++ b/fpdfsdk/formfiller/cffl_formfiller.cpp
@@ -514,13 +514,13 @@ bool CFFL_FormFiller::CommitData(CPDFSDK_PageView* pPageView, uint32_t nFlag) {
}
SaveData(pPageView);
- pFormFiller->OnCalculate(m_pWidget.Get(), pPageView, bExit, nFlag);
+ pFormFiller->OnCalculate(&pObserved, pPageView, bExit, nFlag);
if (!pObserved)
return false;
if (bExit)
return true;
- pFormFiller->OnFormat(m_pWidget.Get(), pPageView, bExit, nFlag);
+ pFormFiller->OnFormat(&pObserved, pPageView, bExit, nFlag);
if (!pObserved)
return false;
if (bExit)