summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-04-16 14:37:47 -0700
committerTom Sepez <tsepez@chromium.org>2015-04-16 14:37:47 -0700
commit5c357a5d3d873be6b0ab01d7bec82f79d0a09f0e (patch)
tree05e79b45a3e8387414c10fda267d6abc381a4dcd /core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp
parent7f6b6677665588a27b9d14babc6358840454ce17 (diff)
downloadpdfium-5c357a5d3d873be6b0ab01d7bec82f79d0a09f0e.tar.xz
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. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1075953004
Diffstat (limited to 'core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp')
-rw-r--r--core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp
index c786df5a5b..bd1cdb6434 100644
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp
@@ -167,7 +167,7 @@ FX_BOOL CPDF_PSProc::Parse(CPDF_SimpleParser& parser)
return TRUE;
}
if (word == FX_BSTRC("{")) {
- CPDF_PSProc* pProc = FX_NEW CPDF_PSProc;
+ CPDF_PSProc* pProc = new CPDF_PSProc;
m_Operators.Add((FX_LPVOID)PSOP_PROC);
m_Operators.Add(pProc);
if (!pProc->Parse(parser)) {
@@ -484,7 +484,7 @@ FX_BOOL CPDF_SampledFunc::v_Init(CPDF_Object* pObj)
CPDF_Array* pDecode = pDict->GetArray(FX_BSTRC("Decode"));
m_nBitsPerSample = pDict->GetInteger(FX_BSTRC("BitsPerSample"));
m_SampleMax = 0xffffffff >> (32 - m_nBitsPerSample);
- m_pSampleStream = FX_NEW CPDF_StreamAcc;
+ m_pSampleStream = new CPDF_StreamAcc;
m_pSampleStream->LoadAllData(pStream, FALSE);
m_pEncodeInfo = FX_Alloc(SampleEncodeInfo, m_nInputs);
int i;
@@ -809,13 +809,13 @@ CPDF_Function* CPDF_Function::Load(CPDF_Object* pFuncObj)
return NULL;
}
if (type == 0) {
- pFunc = FX_NEW CPDF_SampledFunc;
+ pFunc = new CPDF_SampledFunc;
} else if (type == 2) {
- pFunc = FX_NEW CPDF_ExpIntFunc;
+ pFunc = new CPDF_ExpIntFunc;
} else if (type == 3) {
- pFunc = FX_NEW CPDF_StitchFunc;
+ pFunc = new CPDF_StitchFunc;
} else if (type == 4) {
- pFunc = FX_NEW CPDF_PSFunc;
+ pFunc = new CPDF_PSFunc;
} else {
return NULL;
}