diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-11 16:35:12 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-11 16:35:12 +0000 |
commit | ce7df754b0608887a923d5083f0bbb999a735fce (patch) | |
tree | 03c73474e98e7832eb6601e5933707f3ec087653 /xfa/fwl | |
parent | b800d149de09ac7d73aa3d1ff8558e33a4c56009 (diff) | |
download | pdfium-ce7df754b0608887a923d5083f0bbb999a735fce.tar.xz |
Rename CXFA_Box methods to make return clearer
This CL renames the methods in CXFA_Box to make it clearer they can
return nullptr.
Change-Id: I521c0e06af306f69e390a4057cabb7777a0d72f5
Reviewed-on: https://pdfium-review.googlesource.com/22740
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fwl')
-rw-r--r-- | xfa/fwl/theme/cfwl_edittp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fwl/theme/cfwl_edittp.cpp b/xfa/fwl/theme/cfwl_edittp.cpp index a1df805df0..599a4dda69 100644 --- a/xfa/fwl/theme/cfwl_edittp.cpp +++ b/xfa/fwl/theme/cfwl_edittp.cpp @@ -27,7 +27,7 @@ void CFWL_EditTP::DrawBackground(CFWL_ThemeBackground* pParams) { FX_ARGB cr = 0xFF000000; float fWidth = 1.0f; if (borderUI) { - CXFA_Edge* edge = borderUI->GetEdge(0); + CXFA_Edge* edge = borderUI->GetEdgeIfExists(0); if (edge) { cr = edge->GetColor(); fWidth = edge->GetThickness(); |