From 553efe2b5cf65959fa1e547ebb66ffc60b678028 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 4 Dec 2014 09:54:14 -0800 Subject: Replace void* pointers with CFX_BaseMassArrayImp* pointers. Using an incomplete type here avoids casting later on, and allows the debugger to more easily dig through these data structures. R=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/766183009 --- xfa/src/fgas/include/fx_utl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xfa/src/fgas/include') diff --git a/xfa/src/fgas/include/fx_utl.h b/xfa/src/fgas/include/fx_utl.h index 3bb7b61986..354d4bf2bb 100644 --- a/xfa/src/fgas/include/fx_utl.h +++ b/xfa/src/fgas/include/fx_utl.h @@ -11,6 +11,7 @@ class CFX_BaseArray; template class CFX_BaseArrayTemplate; template class CFX_ObjectBaseArrayTemplate; class CFX_BaseMassArray; +class CFX_BaseMassArrayImp; template class CFX_MassArrayTemplate; template class CFX_ObjectMassArrayTemplate; class CFX_BaseDiscreteArray; @@ -233,7 +234,7 @@ protected: FX_INT32 Copy(const CFX_BaseMassArray &src, FX_INT32 iStart = 0, FX_INT32 iCount = -1); FX_INT32 RemoveLast(FX_INT32 iCount = -1); void RemoveAll(FX_BOOL bLeaveMemory = FALSE); - FX_LPVOID m_pData; + CFX_BaseMassArrayImp* m_pData; }; template class CFX_MassArrayTemplate : public CFX_BaseMassArray @@ -431,7 +432,7 @@ protected: FX_INT32 GetSize() const; FX_LPBYTE GetAt(FX_INT32 index) const; void RemoveAll(FX_BOOL bLeaveMemory = FALSE); - FX_LPVOID m_pData; + CFX_BaseMassArrayImp* m_pData; }; template class CFX_StackTemplate : public CFX_BaseStack -- cgit v1.2.3