diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-10 19:34:57 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-10 19:34:57 +0000 |
commit | 1e6490da6fb813930d1073ac05ace8a21fa9ca28 (patch) | |
tree | d1849bda5efcb3b3cd7c4a39580d36228b4ab696 /xfa/fxfa/parser/cxfa_node.h | |
parent | a74e75d69594e469906e2a95b5f2394c88acbe7a (diff) | |
download | pdfium-1e6490da6fb813930d1073ac05ace8a21fa9ca28.tar.xz |
Rename GetCaption to GetCaptionIfExists
This CL renames GetCaption to GetCaptionIfExists to make it clear the
value returned can be a nullptr. The various callsites have been fixed
which used the caption without validating.
Change-Id: I9b600ac9ab5b9e04dfa6e8cee95ef3e9d629688d
Reviewed-on: https://pdfium-review.googlesource.com/22670
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_node.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h index b175a83a84..2ada0083a0 100644 --- a/xfa/fxfa/parser/cxfa_node.h +++ b/xfa/fxfa/parser/cxfa_node.h @@ -238,7 +238,7 @@ class CXFA_Node : public CXFA_Object { CXFA_Border* GetBorderIfExists() const; CXFA_Border* GetOrCreateBorder(); - CXFA_Caption* GetCaption() const; + CXFA_Caption* GetCaptionIfExists() const; CXFA_Font* GetFont() const; CXFA_Font* GetOrCreateFont(); |