diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-04-17 15:15:08 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-04-17 15:15:08 -0700 |
commit | 4cb07c9c9cd5761ce3179d3d7254c1cf0efeafa5 (patch) | |
tree | 2549011fbc3d9d6b8415394a5dc6372a2b346b1e /core/src/reflow/reflowedpage.cpp | |
parent | 48606843d54c5f870d69627afedd574b58d65b3e (diff) | |
download | pdfium-4cb07c9c9cd5761ce3179d3d7254c1cf0efeafa5.tar.xz |
Fix all remaining instances of FX_NEW.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1084613006
Diffstat (limited to 'core/src/reflow/reflowedpage.cpp')
-rw-r--r-- | core/src/reflow/reflowedpage.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/core/src/reflow/reflowedpage.cpp b/core/src/reflow/reflowedpage.cpp index 11baef8718..ba2667f074 100644 --- a/core/src/reflow/reflowedpage.cpp +++ b/core/src/reflow/reflowedpage.cpp @@ -36,11 +36,11 @@ CPDF_ReflowedPage::CPDF_ReflowedPage(CFX_GrowOnlyPool* pMemoryPool) m_pMemoryPool = pMemoryPool; m_bCreateMemoryPool = FALSE; } else { - m_pMemoryPool = FX_NEW CFX_GrowOnlyPool; + m_pMemoryPool = new CFX_GrowOnlyPool; m_bCreateMemoryPool = TRUE; } - m_pCharState = FX_NEW CRF_CharStateArray(10); - m_pReflowed = FX_NEW CRF_DataPtrArray(500); + m_pCharState = new CRF_CharStateArray(10); + m_pReflowed = new CRF_DataPtrArray(500); m_pPageInfos = NULL; } CPDF_ReflowedPage::~CPDF_ReflowedPage() @@ -79,7 +79,7 @@ FX_BOOL CPDF_ReflowedPage::RetainPageObjsMemberShip() return FALSE; } if (NULL == m_pPageInfos) { - m_pPageInfos = FX_NEW CFX_MapPtrToPtr(); + m_pPageInfos = new CFX_MapPtrToPtr(); } else { return TRUE; } @@ -100,10 +100,7 @@ void CPDF_ReflowedPage::MarkPageObjMemberShip(CPDF_PageObject* pObj, CRF_PageInf if (NULL == m_pPageInfos) { return; } - CRF_PageInfo* pPageInfo = FX_NEW CRF_PageInfo(pObj, pParent); - if (NULL == pPageInfo) { - return; - } + CRF_PageInfo* pPageInfo = new CRF_PageInfo(pObj, pParent); m_pPageInfos->SetAt(pObj, pPageInfo); if (PDFPAGE_FORM != pObj->m_Type) { return; @@ -593,11 +590,9 @@ void CPDF_ProgressiveReflowPageRender::Start(IPDF_ReflowedPage* pReflowPage, CFX m_pReflowPage = (CPDF_ReflowedPage*)pReflowPage; m_pFXDevice = pDevice; if(NULL == m_pDisplayMatrix) { - m_pDisplayMatrix = FX_NEW CFX_AffineMatrix; - } - if (m_pDisplayMatrix) { - m_pDisplayMatrix->Copy(*pMatrix); + m_pDisplayMatrix = new CFX_AffineMatrix; } + m_pDisplayMatrix->Copy(*pMatrix); m_Status = ToBeContinued; Display(pPause); } |