From 19835921655cd6f2086c7a741696906fc340abac Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 11 Jan 2018 14:34:56 +0000 Subject: 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 Commit-Queue: dsinclair --- xfa/fxfa/cxfa_ffdatetimeedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/cxfa_ffdatetimeedit.cpp') diff --git a/xfa/fxfa/cxfa_ffdatetimeedit.cpp b/xfa/fxfa/cxfa_ffdatetimeedit.cpp index 018830024b..d6bd096e54 100644 --- a/xfa/fxfa/cxfa_ffdatetimeedit.cpp +++ b/xfa/fxfa/cxfa_ffdatetimeedit.cpp @@ -53,7 +53,7 @@ bool CXFA_FFDateTimeEdit::LoadWidget() { m_pNode->GetWidgetAcc()->GetValue(XFA_VALUEPICTURE_Display); pWidget->SetEditText(wsText); - CXFA_Value* value = m_pNode->GetFormValue(); + CXFA_Value* value = m_pNode->GetFormValueIfExists(); if (value) { switch (value->GetChildValueClassID()) { case XFA_Element::Date: { -- cgit v1.2.3