diff options
author | Lei Zhang <thestig@chromium.org> | 2016-01-29 18:03:40 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-01-29 18:03:40 -0800 |
commit | aa23e7043863904ace627ce6fa470b79ebd1dbc7 (patch) | |
tree | ef8e9cd2daf9eabb94d7ef9091ec4be1843dffb9 /fpdfsdk | |
parent | e5fbd7a170257b455f6ea8c94f71e827e6c3bb8d (diff) | |
download | pdfium-aa23e7043863904ace627ce6fa470b79ebd1dbc7.tar.xz |
Another round of cleanup in CPDF_Parser and friends.
- Remove dead code.
- Add more public methods and remove friends.
TBR=weili@chromium.org
Review URL: https://codereview.chromium.org/1566133002 .
(cherry picked from commit 9e8185948f7631515951770ca8778f42cc9fd2fc)
Review URL: https://codereview.chromium.org/1649233002 .
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); |