diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-11 18:29:02 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-11 18:29:02 +0000 |
commit | 5c818b62f4b17ea18f4fc5805ba11e1936e6bc62 (patch) | |
tree | 092cd9bd0b35c9e2cb7bf2910c62f1814e225926 /xfa/fxfa/parser/cxfa_node.cpp | |
parent | c7f4322f1ac8ee1604ac3e24860530994575c9af (diff) | |
download | pdfium-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/parser/cxfa_node.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index c7a0bb1668..e6cdf98d49 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -1934,7 +1934,7 @@ WideString CXFA_Node::GetValidateCaptionName(bool bVersionFlag) { if (!bVersionFlag) { CXFA_Caption* caption = GetCaptionIfExists(); if (caption) { - CXFA_Value* capValue = caption->GetValue(); + CXFA_Value* capValue = caption->GetValueIfExists(); if (capValue) { CXFA_Text* captionText = capValue->GetText(); if (captionText) |