diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-11 14:34:56 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-11 14:34:56 +0000 |
commit | 19835921655cd6f2086c7a741696906fc340abac (patch) | |
tree | 7b71d4d2ae2985a9418160e41e47eeea4eff370e /xfa/fxfa/cxfa_ffimageedit.cpp | |
parent | 241752f3c188ed992a26618361e55b1d7f2be7cc (diff) | |
download | pdfium-19835921655cd6f2086c7a741696906fc340abac.tar.xz |
Rename GetFormValue to GetFormValueIfExists
This CL makes it clear that GetFormValue can return nullptr and fixes up
a few callsites as needed.
Change-Id: Id2e85b0956a678b5b338b9e2a4d32731fe6c4729
Reviewed-on: https://pdfium-review.googlesource.com/22690
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffimageedit.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffimageedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_ffimageedit.cpp b/xfa/fxfa/cxfa_ffimageedit.cpp index 15d798c30c..15a8dc3fd4 100644 --- a/xfa/fxfa/cxfa_ffimageedit.cpp +++ b/xfa/fxfa/cxfa_ffimageedit.cpp @@ -82,7 +82,7 @@ void CXFA_FFImageEdit::RenderWidget(CXFA_Graphics* pGS, } XFA_AttributeEnum iAspect = XFA_AttributeEnum::Fit; - CXFA_Value* value = m_pNode->GetFormValue(); + CXFA_Value* value = m_pNode->GetFormValueIfExists(); if (value) { CXFA_Image* image = value->GetImage(); if (image) |