From 5803aff484dc9ae1c41cffc1d8858a68a0e6790a Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 29 Feb 2016 12:59:04 -0500 Subject: Remove wParentIndex from XFA_ELEMENTHIERARCHY. This value is never set and never read. Removing it fixes a series of warnings when building on OSX as g_XFAElementPropertyIndex does not initialize the value. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1744893002 . --- xfa/include/fxfa/fxfa_basic.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xfa/include') diff --git a/xfa/include/fxfa/fxfa_basic.h b/xfa/include/fxfa/fxfa_basic.h index 39586ee71f..a93cb455ae 100644 --- a/xfa/include/fxfa/fxfa_basic.h +++ b/xfa/include/fxfa/fxfa_basic.h @@ -970,8 +970,8 @@ CXFA_Measurement XFA_GetAttributeDefaultValue_Measure(XFA_ELEMENT eElement, struct XFA_ELEMENTHIERARCHY { FX_WORD wStart; FX_WORD wCount; - FX_WORD wParentIndex; }; + struct XFA_SCRIPTHIERARCHY { FX_WORD wMethodStart; FX_WORD wMethodCount; @@ -979,6 +979,7 @@ struct XFA_SCRIPTHIERARCHY { FX_WORD wAttributeCount; int16_t wParentIndex; }; + typedef XFA_SCRIPTHIERARCHY const* XFA_LPCSCRIPTHIERARCHY; const FX_WORD* XFA_GetElementChildren(XFA_ELEMENT eElement, int32_t& iCount); const uint8_t* XFA_GetElementAttributes(XFA_ELEMENT eElement, int32_t& iCount); -- cgit v1.2.3