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 --- fxjs/cjx_node.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'fxjs/cjx_node.h') diff --git a/fxjs/cjx_node.h b/fxjs/cjx_node.h index 73023e5c2e..fa2b28e5e2 100644 --- a/fxjs/cjx_node.h +++ b/fxjs/cjx_node.h @@ -72,13 +72,12 @@ class CJX_Node : public CJX_Object { bool SetInteger(XFA_Attribute eAttr, int32_t iValue, bool bNotify); int32_t GetInteger(XFA_Attribute eAttr); - bool TryCData(XFA_Attribute eAttr, WideStringView& wsValue, bool bUseDefault); bool TryCData(XFA_Attribute eAttr, WideString& wsValue, bool bUseDefault); bool SetCData(XFA_Attribute eAttr, const WideString& wsValue, bool bNotify, bool bScriptModify); - WideStringView GetCData(XFA_Attribute eAttr); + WideString GetCData(XFA_Attribute eAttr); bool TryContent(WideString& wsContent, bool bScriptModify, bool bProto); @@ -409,10 +408,6 @@ class CJX_Node : public CJX_Object { XFA_AttributeType eType, void* pValue, bool bNotify); - bool GetValue(XFA_Attribute eAttr, - XFA_AttributeType eType, - bool bUseDefault, - void*& pValue); bool TryUserData(void* pKey, void*& pData, bool bProtoAlso); -- cgit v1.2.3