diff options
author | dsinclair <dsinclair@chromium.org> | 2016-08-16 11:43:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-16 11:43:24 -0700 |
commit | f85e7e2ea29179dfe4ddc25ab410f8898391999c (patch) | |
tree | d32f70e74fd0f39aa5b1051d0e7366fb586d2d06 /fpdfsdk/fpdf_dataavail.cpp | |
parent | 4540fbaa718b0b06e076321e0e1a61e80a161499 (diff) | |
download | pdfium-f85e7e2ea29179dfe4ddc25ab410f8898391999c.tar.xz |
Rename async to linearized when parsing
The parser and document refer to async loading and parsing. The code isn't
actually async but loading a linearized PDF. This Cl renames the methods to
clarify what the code is doing.
The LoadDoc() and LoadLinearizedDoc() methods have been refactored to share
a common LoadDocInternal() method.
Review-Url: https://codereview.chromium.org/2250163002
Diffstat (limited to 'fpdfsdk/fpdf_dataavail.cpp')
-rw-r--r-- | fpdfsdk/fpdf_dataavail.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fpdf_dataavail.cpp b/fpdfsdk/fpdf_dataavail.cpp index 3cc7fc0347..5dd42402ed 100644 --- a/fpdfsdk/fpdf_dataavail.cpp +++ b/fpdfsdk/fpdf_dataavail.cpp @@ -140,7 +140,7 @@ FPDFAvail_GetDocument(FPDF_AVAIL avail, FPDF_BYTESTRING password) { pParser->SetPassword(password); std::unique_ptr<CPDF_Document> pDocument(new CPDF_Document(pParser.get())); - CPDF_Parser::Error error = pParser->StartAsyncParse( + CPDF_Parser::Error error = pParser->StartLinearizedParse( pDataAvail->m_pDataAvail->GetFileRead(), std::move(pDocument)); if (error != CPDF_Parser::SUCCESS) { ProcessParseError(error); |