diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-16 13:42:49 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-16 13:42:49 +0000 |
commit | b066704a22ba4f242567f508c12bf2545cbed9e1 (patch) | |
tree | b0ef12e2873bf7018d4b17a41b626428fb789923 /xfa/fxfa/parser/cxfa_binditemsdata.cpp | |
parent | 4011677aed8b258fcf87cf52b0d541ef04c832ff (diff) | |
download | pdfium-b066704a22ba4f242567f508c12bf2545cbed9e1.tar.xz |
Convert TryCData and TryContent to optionals
This CL changes the TryCData and TryContent to return
pdfium::Optional<WideString> values instead of returning a bool and
taking an out WideString.
Change-Id: I9c9d877803f9f1977191e12d6a907c29784c10b2
Reviewed-on: https://pdfium-review.googlesource.com/18510
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_binditemsdata.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_binditemsdata.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_binditemsdata.cpp b/xfa/fxfa/parser/cxfa_binditemsdata.cpp index ac6b765faa..3f0614fd6f 100644 --- a/xfa/fxfa/parser/cxfa_binditemsdata.cpp +++ b/xfa/fxfa/parser/cxfa_binditemsdata.cpp @@ -12,15 +12,15 @@ CXFA_BindItemsData::CXFA_BindItemsData(CXFA_Node* pNode) : CXFA_DataData(pNode) {} void CXFA_BindItemsData::GetLabelRef(WideString& wsLabelRef) { - m_pNode->JSNode()->TryCData(XFA_Attribute::LabelRef, wsLabelRef, true); + wsLabelRef = m_pNode->JSNode()->GetCData(XFA_Attribute::LabelRef); } void CXFA_BindItemsData::GetValueRef(WideString& wsValueRef) { - m_pNode->JSNode()->TryCData(XFA_Attribute::ValueRef, wsValueRef, true); + wsValueRef = m_pNode->JSNode()->GetCData(XFA_Attribute::ValueRef); } void CXFA_BindItemsData::GetRef(WideString& wsRef) { - m_pNode->JSNode()->TryCData(XFA_Attribute::Ref, wsRef, true); + wsRef = m_pNode->JSNode()->GetCData(XFA_Attribute::Ref); } bool CXFA_BindItemsData::SetConnection(const WideString& wsConnection) { |