From 316dd2fcd64d0cda1e1b2cdc39ca541a57766b35 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 16 Jan 2018 15:49:16 +0000 Subject: Rename CXFA_Value methods for clarity This CL marks the methods in CXFA_Value to make it clear which can return nullptr and updates callsites as needed. Change-Id: If1f794bcbbddaa57a1efdd67195df58a77b4373a Reviewed-on: https://pdfium-review.googlesource.com/22773 Commit-Queue: dsinclair Reviewed-by: Ryan Harrison --- xfa/fxfa/cxfa_ffimageedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/cxfa_ffimageedit.cpp') diff --git a/xfa/fxfa/cxfa_ffimageedit.cpp b/xfa/fxfa/cxfa_ffimageedit.cpp index 15a8dc3fd4..681370edf5 100644 --- a/xfa/fxfa/cxfa_ffimageedit.cpp +++ b/xfa/fxfa/cxfa_ffimageedit.cpp @@ -84,7 +84,7 @@ void CXFA_FFImageEdit::RenderWidget(CXFA_Graphics* pGS, XFA_AttributeEnum iAspect = XFA_AttributeEnum::Fit; CXFA_Value* value = m_pNode->GetFormValueIfExists(); if (value) { - CXFA_Image* image = value->GetImage(); + CXFA_Image* image = value->GetImageIfExists(); if (image) iAspect = image->GetAspect(); } -- cgit v1.2.3