summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_node.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-11 14:46:32 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-11 14:46:32 +0000
commit7d2c5f4c8d33d57b76af1c471e70af36db090072 (patch)
tree929bc3f0aa098eacd987b6b7f9f8fd077f5cba66 /xfa/fxfa/parser/cxfa_node.h
parentfc77dee8e5d0f941ea6050aa632254b588a21f87 (diff)
downloadpdfium-7d2c5f4c8d33d57b76af1c471e70af36db090072.tar.xz
Rename CreateInstance to CreateInstanceIfPossible
This CL makes it clear that CreateInstance may return nullptr. Change-Id: I82f172a671761eae9055b0e9e55ab0e5a7d599aa Reviewed-on: https://pdfium-review.googlesource.com/22712 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h
index d8689859be..1e20ace09c 100644
--- a/xfa/fxfa/parser/cxfa_node.h
+++ b/xfa/fxfa/parser/cxfa_node.h
@@ -102,7 +102,7 @@ class CXFA_Node : public CXFA_Object {
void SetFlag(uint32_t dwFlag, bool bNotify);
void ClearFlag(uint32_t dwFlag);
- CXFA_Node* CreateInstance(bool bDataMerge);
+ CXFA_Node* CreateInstanceIfPossible(bool bDataMerge);
int32_t GetCount();
CXFA_Node* GetItem(int32_t iIndex);
void RemoveItem(CXFA_Node* pRemoveInstance, bool bRemoveDataBinding);