summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdf_ext.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-04-17 13:57:46 -0700
committerTom Sepez <tsepez@chromium.org>2015-04-17 13:57:46 -0700
commit48606843d54c5f870d69627afedd574b58d65b3e (patch)
treeb8c8fe92e99f2deea542611dfb21e94a2c06541d /fpdfsdk/src/fpdf_ext.cpp
parent916228365f7f03a51e5fb0e4bab03fa708b107c5 (diff)
downloadpdfium-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.cpp12
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)