summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffcheckbutton.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-11 18:29:02 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-11 18:29:02 +0000
commit5c818b62f4b17ea18f4fc5805ba11e1936e6bc62 (patch)
tree092cd9bd0b35c9e2cb7bf2910c62f1814e225926 /xfa/fxfa/cxfa_ffcheckbutton.cpp
parentc7f4322f1ac8ee1604ac3e24860530994575c9af (diff)
downloadpdfium-5c818b62f4b17ea18f4fc5805ba11e1936e6bc62.tar.xz
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 <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffcheckbutton.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffcheckbutton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_ffcheckbutton.cpp b/xfa/fxfa/cxfa_ffcheckbutton.cpp
index b50349f211..699f3fe988 100644
--- a/xfa/fxfa/cxfa_ffcheckbutton.cpp
+++ b/xfa/fxfa/cxfa_ffcheckbutton.cpp
@@ -122,7 +122,7 @@ bool CXFA_FFCheckButton::PerformLayout() {
}
m_rtUI = rtWidget;
- CXFA_Margin* captionMargin = caption ? caption->GetMargin() : nullptr;
+ CXFA_Margin* captionMargin = caption ? caption->GetMarginIfExists() : nullptr;
switch (iCapPlacement) {
case XFA_AttributeEnum::Left: {
m_rtCaption.width = fCapReserve;