From 5c818b62f4b17ea18f4fc5805ba11e1936e6bc62 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 11 Jan 2018 18:29:02 +0000 Subject: Rename CXFA_Caption methods for clarity This CL renames the CXFA_Caption methods to make it clearer they can return nullptr. Change-Id: I1b4945fcd2615f16a128709b7fe07e1236a5461a Reviewed-on: https://pdfium-review.googlesource.com/22743 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- xfa/fxfa/cxfa_ffpushbutton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/cxfa_ffpushbutton.cpp') diff --git a/xfa/fxfa/cxfa_ffpushbutton.cpp b/xfa/fxfa/cxfa_ffpushbutton.cpp index 85805b4d76..97078a6f75 100644 --- a/xfa/fxfa/cxfa_ffpushbutton.cpp +++ b/xfa/fxfa/cxfa_ffpushbutton.cpp @@ -107,7 +107,7 @@ bool CXFA_FFPushButton::PerformLayout() { m_rtCaption = rtWidget; CXFA_Caption* caption = m_pNode->GetCaptionIfExists(); - CXFA_Margin* captionMargin = caption ? caption->GetMargin() : nullptr; + CXFA_Margin* captionMargin = caption ? caption->GetMarginIfExists() : nullptr; if (captionMargin) XFA_RectWithoutMargin(m_rtCaption, captionMargin); -- cgit v1.2.3