From aee28693976cc246eea8230a999906802e52cab7 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 14 Nov 2017 21:19:44 +0000 Subject: Cleanup XFA default value code This CL adds helper methods to CXFA_Node to retrieve the default values for attributes with the correct data types. Change-Id: I644435b4b430819f1060a95fa4fffe4ba2826cfe Reviewed-on: https://pdfium-review.googlesource.com/18450 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_binditemsdata.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xfa/fxfa/parser/cxfa_binditemsdata.cpp') diff --git a/xfa/fxfa/parser/cxfa_binditemsdata.cpp b/xfa/fxfa/parser/cxfa_binditemsdata.cpp index 644b532839..ac6b765faa 100644 --- a/xfa/fxfa/parser/cxfa_binditemsdata.cpp +++ b/xfa/fxfa/parser/cxfa_binditemsdata.cpp @@ -11,15 +11,15 @@ CXFA_BindItemsData::CXFA_BindItemsData(CXFA_Node* pNode) : CXFA_DataData(pNode) {} -void CXFA_BindItemsData::GetLabelRef(WideStringView& wsLabelRef) { +void CXFA_BindItemsData::GetLabelRef(WideString& wsLabelRef) { m_pNode->JSNode()->TryCData(XFA_Attribute::LabelRef, wsLabelRef, true); } -void CXFA_BindItemsData::GetValueRef(WideStringView& wsValueRef) { +void CXFA_BindItemsData::GetValueRef(WideString& wsValueRef) { m_pNode->JSNode()->TryCData(XFA_Attribute::ValueRef, wsValueRef, true); } -void CXFA_BindItemsData::GetRef(WideStringView& wsRef) { +void CXFA_BindItemsData::GetRef(WideString& wsRef) { m_pNode->JSNode()->TryCData(XFA_Attribute::Ref, wsRef, true); } -- cgit v1.2.3