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_dataavail.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_dataavail.cpp')
-rw-r--r-- | fpdfsdk/src/fpdf_dataavail.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdf_dataavail.cpp b/fpdfsdk/src/fpdf_dataavail.cpp index d6ed3c3a4b..0f9e9561e6 100644 --- a/fpdfsdk/src/fpdf_dataavail.cpp +++ b/fpdfsdk/src/fpdf_dataavail.cpp @@ -97,7 +97,7 @@ public: DLLEXPORT FPDF_AVAIL STDCALL FPDFAvail_Create(FX_FILEAVAIL* file_avail, FPDF_FILEACCESS* file) { - CFPDF_DataAvail* pAvail = FX_NEW CFPDF_DataAvail; + CFPDF_DataAvail* pAvail = new CFPDF_DataAvail; pAvail->m_FileAvail.Set(file_avail); pAvail->m_FileRead.Set(file); pAvail->m_pDataAvail = IPDF_DataAvail::Create(&pAvail->m_FileAvail, &pAvail->m_FileRead); @@ -122,7 +122,7 @@ extern void CheckUnSupportError(CPDF_Document * pDoc, FX_DWORD err_code); DLLEXPORT FPDF_DOCUMENT STDCALL FPDFAvail_GetDocument(FPDF_AVAIL avail, FPDF_BYTESTRING password) { if (avail == NULL) return NULL; - CPDF_Parser* pParser = FX_NEW CPDF_Parser; + CPDF_Parser* pParser = new CPDF_Parser; pParser->SetPassword(password); FX_DWORD err_code = pParser->StartAsynParse(((CFPDF_DataAvail*)avail)->m_pDataAvail->GetFileRead()); |