diff options
author | Lei Zhang <thestig@chromium.org> | 2016-01-29 17:51:28 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-01-29 17:51:28 -0800 |
commit | 9e8185948f7631515951770ca8778f42cc9fd2fc (patch) | |
tree | 72d1e54238a2e514aa4f8d0d9b10cc80160d4a39 /fpdfsdk | |
parent | df1ab41e000069dda7bf21527308f3bf41e126ca (diff) | |
download | pdfium-9e8185948f7631515951770ca8778f42cc9fd2fc.tar.xz |
Another round of cleanup in CPDF_Parser and friends.
- Remove dead code.
- Add more public methods and remove friends.
R=weili@chromium.org
Review URL: https://codereview.chromium.org/1566133002 .
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/src/fpdf_dataavail.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/src/fpdf_dataavail.cpp b/fpdfsdk/src/fpdf_dataavail.cpp index baf8f9c924..866e41edfc 100644 --- a/fpdfsdk/src/fpdf_dataavail.cpp +++ b/fpdfsdk/src/fpdf_dataavail.cpp @@ -124,16 +124,16 @@ DLLEXPORT FPDF_DOCUMENT STDCALL FPDFAvail_GetDocument(FPDF_AVAIL avail, FPDF_BYTESTRING password) { CFPDF_DataAvail* pDataAvail = static_cast<CFPDF_DataAvail*>(avail); if (!pDataAvail) - return NULL; + return nullptr; CPDF_Parser* pParser = new CPDF_Parser; pParser->SetPassword(password); CPDF_Parser::Error error = - pParser->StartAsynParse(pDataAvail->m_pDataAvail->GetFileRead()); + pParser->StartAsyncParse(pDataAvail->m_pDataAvail->GetFileRead()); if (error != CPDF_Parser::SUCCESS) { delete pParser; ProcessParseError(error); - return NULL; + return nullptr; } pDataAvail->m_pDataAvail->SetDocument(pParser->GetDocument()); CheckUnSupportError(pParser->GetDocument(), FPDF_ERR_SUCCESS); |