From 5734d862cb22eca6e9644ea7d1c096d70123434f Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 6 May 2015 14:48:28 -0700 Subject: Merge to XFA: Replace FX_NEW with new, remove tests from fpdfapi Very few places where a change is required, but remove FX_NEW to show they've been audited. Review URL: https://codereview.chromium.org/1075953004 (cherry picked from commit 5c357a5d3d873be6b0ab01d7bec82f79d0a09f0e) R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1125183006 --- core/src/fpdfapi/fpdf_page/fpdf_page.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'core/src/fpdfapi/fpdf_page/fpdf_page.cpp') diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page.cpp index c9b17054a8..4ec753d751 100644 --- a/core/src/fpdfapi/fpdf_page/fpdf_page.cpp +++ b/core/src/fpdfapi/fpdf_page/fpdf_page.cpp @@ -11,15 +11,15 @@ CPDF_PageObject* CPDF_PageObject::Create(int type) { switch (type) { case PDFPAGE_TEXT: - return FX_NEW CPDF_TextObject; + return new CPDF_TextObject; case PDFPAGE_IMAGE: - return FX_NEW CPDF_ImageObject; + return new CPDF_ImageObject; case PDFPAGE_PATH: - return FX_NEW CPDF_PathObject; + return new CPDF_PathObject; case PDFPAGE_SHADING: - return FX_NEW CPDF_ShadingObject; + return new CPDF_ShadingObject; case PDFPAGE_FORM: - return FX_NEW CPDF_FormObject; + return new CPDF_FormObject; } return NULL; } @@ -887,7 +887,7 @@ void CPDF_Page::StartParse(CPDF_ParseOptions* pOptions, FX_BOOL bReParse) if (m_ParseState == PDF_CONTENT_PARSED || m_ParseState == PDF_CONTENT_PARSING) { return; } - m_pParser = FX_NEW CPDF_ContentParser; + m_pParser = new CPDF_ContentParser; m_pParser->Start(this, pOptions); m_ParseState = PDF_CONTENT_PARSING; } @@ -951,7 +951,7 @@ void CPDF_Form::StartParse(CPDF_AllStates* pGraphicStates, CFX_AffineMatrix* pPa if (m_ParseState == PDF_CONTENT_PARSED || m_ParseState == PDF_CONTENT_PARSING) { return; } - m_pParser = FX_NEW CPDF_ContentParser; + m_pParser = new CPDF_ContentParser; m_pParser->Start(this, pGraphicStates, pParentMatrix, pType3Char, pOptions, level); m_ParseState = PDF_CONTENT_PARSING; } @@ -963,7 +963,7 @@ void CPDF_Form::ParseContent(CPDF_AllStates* pGraphicStates, CFX_AffineMatrix* p } CPDF_Form* CPDF_Form::Clone() const { - CPDF_Form* pClone = FX_NEW CPDF_Form(m_pDocument, m_pPageResources, m_pFormStream, m_pResources); + CPDF_Form* pClone = new CPDF_Form(m_pDocument, m_pPageResources, m_pFormStream, m_pResources); FX_POSITION pos = m_ObjectList.GetHeadPosition(); while (pos) { CPDF_PageObject* pObj = (CPDF_PageObject*)m_ObjectList.GetNext(pos); -- cgit v1.2.3