From b657e87fa1e25997c8277fa49ed33ff245391f31 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 24 Jan 2018 20:05:29 +0000 Subject: Cleanup CreateUIChild node creation This CL cleans up some of the code around creating the XML nodes related to the UI widgets. Change-Id: Ib91364439ab039f46e44690e92cc0cb93a8da203 Reviewed-on: https://pdfium-review.googlesource.com/23770 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- fxjs/xfa/cjx_object.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fxjs/xfa/cjx_object.h') diff --git a/fxjs/xfa/cjx_object.h b/fxjs/xfa/cjx_object.h index c252b45036..deedebc8e5 100644 --- a/fxjs/xfa/cjx_object.h +++ b/fxjs/xfa/cjx_object.h @@ -187,9 +187,10 @@ class CJX_Object { bool bScriptModify); WideString GetCData(XFA_Attribute eAttr); - Optional TryEnum(XFA_Attribute eAttr, bool bUseDefault); + Optional TryEnum(XFA_Attribute eAttr, + bool bUseDefault) const; bool SetEnum(XFA_Attribute eAttr, XFA_AttributeEnum eValue, bool bNotify); - XFA_AttributeEnum GetEnum(XFA_Attribute eAttr); + XFA_AttributeEnum GetEnum(XFA_Attribute eAttr) const; Optional TryBoolean(XFA_Attribute eAttr, bool bUseDefault); bool SetBoolean(XFA_Attribute eAttr, bool bValue, bool bNotify); @@ -255,7 +256,7 @@ class CJX_Object { XFA_MAPMODULEDATA* CreateMapModuleData(); XFA_MAPMODULEDATA* GetMapModuleData() const; void SetMapModuleValue(void* pKey, void* pValue); - bool GetMapModuleValue(void* pKey, void*& pValue); + bool GetMapModuleValue(void* pKey, void*& pValue) const; bool GetMapModuleString(void* pKey, WideStringView& wsValue); void SetMapModuleBuffer(void* pKey, void* pValue, -- cgit v1.2.3