diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-11 14:45:22 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-11 14:45:22 +0000 |
commit | 454eea606f8cd1ecdcd4816fa9d6600558287af0 (patch) | |
tree | 20ccdd70c09b0eec72261ecfa39e06efa3a128fc /xfa/fxfa/parser | |
parent | 19835921655cd6f2086c7a741696906fc340abac (diff) | |
download | pdfium-454eea606f8cd1ecdcd4816fa9d6600558287af0.tar.xz |
Rename GetBind to GetBindIfExists
This CL updates the name to make it clearer the item an return nullptr.
Change-Id: Icc5dbbf5ec3b9a8c73c6aaec585fdd61e2351c75
Reviewed-on: https://pdfium-review.googlesource.com/22710
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser')
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.cpp | 2 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index 9c28668c16..2cf521f44b 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -1617,7 +1617,7 @@ CXFA_Validate* CXFA_Node::GetOrCreateValidateIfPossible() { XFA_Element::Validate); } -CXFA_Bind* CXFA_Node::GetBind() const { +CXFA_Bind* CXFA_Node::GetBindIfExists() const { return JSObject()->GetProperty<CXFA_Bind>(0, XFA_Element::Bind); } diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h index 8a0a3610a6..f6021bd8b0 100644 --- a/xfa/fxfa/parser/cxfa_node.h +++ b/xfa/fxfa/parser/cxfa_node.h @@ -257,7 +257,7 @@ class CXFA_Node : public CXFA_Object { WideString GetRawValue(); int32_t GetRotate(); - CXFA_Bind* GetBind() const; + CXFA_Bind* GetBindIfExists() const; Optional<float> TryWidth(); Optional<float> TryHeight(); |