summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdf_dataavail.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-02 10:10:49 -0700
committerLei Zhang <thestig@chromium.org>2015-10-02 10:10:49 -0700
commitcb78ef507c272488fd7e4fd6862014333d8a9de5 (patch)
treefc5ef896bc830bebd4aca2902685dfb097365115 /fpdfsdk/src/fpdf_dataavail.cpp
parent6ac0d2f03c8a00fd770d2beddf57da7755d950a6 (diff)
downloadpdfium-cb78ef507c272488fd7e4fd6862014333d8a9de5.tar.xz
XFA: Remove checks for new returning NULL in fpdfsdk.
Based on parts of https://codereview.chromium.org/1089823004 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1383933003 .
Diffstat (limited to 'fpdfsdk/src/fpdf_dataavail.cpp')
-rw-r--r--fpdfsdk/src/fpdf_dataavail.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdf_dataavail.cpp b/fpdfsdk/src/fpdf_dataavail.cpp
index 58bd384bf5..d3b44160a8 100644
--- a/fpdfsdk/src/fpdf_dataavail.cpp
+++ b/fpdfsdk/src/fpdf_dataavail.cpp
@@ -115,8 +115,7 @@ FPDFAvail_GetDocument(FPDF_AVAIL avail, FPDF_BYTESTRING password) {
CheckUnSupportError(pParser->GetDocument(), FPDF_ERR_SUCCESS);
CPDF_Document* pPDFDoc = pParser->GetDocument();
CPDFXFA_App* pApp = CPDFXFA_App::GetInstance();
- CPDFXFA_Document* pDocument = new CPDFXFA_Document(pPDFDoc, pApp);
- return pDocument;
+ return new CPDFXFA_Document(pPDFDoc, pApp);
}
DLLEXPORT int STDCALL FPDFAvail_GetFirstPageNum(FPDF_DOCUMENT doc) {