From 6c949d13ad2543e28cf174ecf457b5adcdf213bf Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 16 Jun 2015 16:00:24 -0700 Subject: XFA: Write new as "new" rather than using several macros. Really? R=thestig@chromium.org Review URL: https://codereview.chromium.org/1183193004. --- xfa/src/fgas/include/fx_utl.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xfa/src/fgas/include/fx_utl.h') diff --git a/xfa/src/fgas/include/fx_utl.h b/xfa/src/fgas/include/fx_utl.h index 38342a8cc8..2e4ad41842 100644 --- a/xfa/src/fgas/include/fx_utl.h +++ b/xfa/src/fgas/include/fx_utl.h @@ -132,7 +132,7 @@ public: { int32_t index = CFX_BaseArray::GetSize(); baseType *p = (baseType*)CFX_BaseArray::AddSpaceTo(index); - FXTARGET_New ((void*)p)baseType(element); + new ((void*)p) baseType(element); return index; } baseType& GetAt(int32_t index) const @@ -194,7 +194,7 @@ public: int32_t iBlockSize = CFX_BaseArray::GetBlockSize(); iSize = iStart + iCount; for (int32_t i = iStart; i < iSize; i ++) { - FXTARGET_New ((void*)pStart)baseType(src.GetAt(i)); + new ((void*)pStart)baseType(src.GetAt(i)); pStart += iBlockSize; } return iCount; @@ -312,7 +312,7 @@ public: { int32_t index = CFX_BaseMassArray::GetSize(); baseType *p = (baseType*)CFX_BaseMassArray::AddSpaceTo(index); - FXTARGET_New ((void*)p)baseType(element); + new ((void*)p)baseType(element); return index; } baseType& GetAt(int32_t index) const @@ -483,7 +483,7 @@ public: { int32_t index = CFX_BaseStack::GetSize(); baseType *p = (baseType*)CFX_BaseStack::Push(); - FXTARGET_New ((void*)p)baseType(element); + new ((void*)p)baseType(element); return index; } void Pop() @@ -780,7 +780,7 @@ public: if (pParent == NULL) { pParent = &m_Root; } - CPLTreeNode *pChild = FXTARGET_New CPLTreeNode; + CPLTreeNode *pChild = new CPLTreeNode; pChild->SetParentNode(pParent); pChild->SetData(data); if (pParent->m_pChildNode == NULL) { -- cgit v1.2.3