diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-04-17 13:57:46 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-04-17 13:57:46 -0700 |
commit | 48606843d54c5f870d69627afedd574b58d65b3e (patch) | |
tree | b8c8fe92e99f2deea542611dfb21e94a2c06541d /fpdfsdk/src/fpdf_ext.cpp | |
parent | 916228365f7f03a51e5fb0e4bab03fa708b107c5 (diff) | |
download | pdfium-48606843d54c5f870d69627afedd574b58d65b3e.tar.xz |
Replace FX_NEW with new, remove tests from fpdfsdk
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1089823004
Diffstat (limited to 'fpdfsdk/src/fpdf_ext.cpp')
-rw-r--r-- | fpdfsdk/src/fpdf_ext.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fpdfsdk/src/fpdf_ext.cpp b/fpdfsdk/src/fpdf_ext.cpp index 93f6e187da..c454756ce9 100644 --- a/fpdfsdk/src/fpdf_ext.cpp +++ b/fpdfsdk/src/fpdf_ext.cpp @@ -204,17 +204,13 @@ void CheckUnSupportError(CPDF_Document * pDoc, FX_DWORD err_code) if(pElement) CheckSharedForm(pElement, "workflowType"); - // XFA Forms - CPDF_InterForm * pInterForm = FX_NEW CPDF_InterForm(pDoc,FALSE); - if (pInterForm) + CPDF_InterForm * pInterForm = new CPDF_InterForm(pDoc,FALSE); + if (pInterForm->HasXFAForm()) { - if(pInterForm->HasXFAForm()) - { - FPDF_UnSupportError(FPDF_UNSP_DOC_XFAFORM); - } - delete pInterForm; + FPDF_UnSupportError(FPDF_UNSP_DOC_XFAFORM); } + delete pInterForm; } DLLEXPORT int FPDFDoc_GetPageMode(FPDF_DOCUMENT document) |