diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-16 14:19:07 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-16 14:19:07 +0000 |
commit | 8873a4dffed0ae3ccd961ada58c588f92b210bf2 (patch) | |
tree | 86472d2a7769467cabbcb9f1fdc71129b97d0c7d /fxjs/cjx_node.h | |
parent | 9d608ff14177cd665f6b2ead639415bda935fbe2 (diff) | |
download | pdfium-8873a4dffed0ae3ccd961ada58c588f92b210bf2.tar.xz |
Convert TryBoolean to return a pdfium::Optional
This CL changes CJX_Node::TryBoolean to return a pdfium::Optional
instead of a bool with an out parameter.
Change-Id: Iceeaaaa5bda62f34e66161834e0209c2169f7f15
Reviewed-on: https://pdfium-review.googlesource.com/18530
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjx_node.h')
-rw-r--r-- | fxjs/cjx_node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cjx_node.h b/fxjs/cjx_node.h index 81af0dfe73..8cf167938c 100644 --- a/fxjs/cjx_node.h +++ b/fxjs/cjx_node.h @@ -88,7 +88,7 @@ class CJX_Node : public CJX_Object { bool SetEnum(XFA_Attribute eAttr, XFA_ATTRIBUTEENUM eValue, bool bNotify); XFA_ATTRIBUTEENUM GetEnum(XFA_Attribute eAttr); - bool TryBoolean(XFA_Attribute eAttr, bool& bValue, bool bUseDefault); + pdfium::Optional<bool> TryBoolean(XFA_Attribute eAttr, bool bUseDefault); bool SetBoolean(XFA_Attribute eAttr, bool bValue, bool bNotify); bool GetBoolean(XFA_Attribute eAttr); |