diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-10 19:44:26 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-10 19:44:26 +0000 |
commit | 78d841011655b868486a45e0fe865a972742aa0c (patch) | |
tree | e2bb52e930000b90d77aaf82af8903d106d63d58 /xfa/fxfa/cxfa_ffpushbutton.cpp | |
parent | ccd7899b2d662c0a1be6cd52c6b6068472c27375 (diff) | |
download | pdfium-78d841011655b868486a45e0fe865a972742aa0c.tar.xz |
Rename GetMargin to GetMarginIfExists
This CL makes it explicit that GetMargin may return a nullptr.
Change-Id: I46780e8df9e966accc38baf56f8aa5149533db87
Reviewed-on: https://pdfium-review.googlesource.com/22675
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffpushbutton.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffpushbutton.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_ffpushbutton.cpp b/xfa/fxfa/cxfa_ffpushbutton.cpp index 4bcd1553b9..779fada905 100644 --- a/xfa/fxfa/cxfa_ffpushbutton.cpp +++ b/xfa/fxfa/cxfa_ffpushbutton.cpp @@ -100,7 +100,7 @@ bool CXFA_FFPushButton::PerformLayout() { CFX_RectF rtWidget = GetRectWithoutRotate(); m_rtUI = rtWidget; - CXFA_Margin* margin = m_pNode->GetMargin(); + CXFA_Margin* margin = m_pNode->GetMarginIfExists(); if (margin) XFA_RectWithoutMargin(rtWidget, margin); |