diff options
author | Lei Zhang <thestig@chromium.org> | 2016-01-13 11:42:32 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-01-13 11:42:32 -0800 |
commit | 2fa5c7a8b6602bb2fe1df7cd09b12de666ca8a0a (patch) | |
tree | dbffdb61eaa3d16d90578540846770ee5ccac2bf /core/include | |
parent | 4bfa89e8197182854b067d35809df09540cd3f52 (diff) | |
download | pdfium-2fa5c7a8b6602bb2fe1df7cd09b12de666ca8a0a.tar.xz |
Use the compiler to type check DocAvailStatus return values.
R=jun_fang@foxitsoftware.com
Review URL: https://codereview.chromium.org/1575363007 .
Diffstat (limited to 'core/include')
-rw-r--r-- | core/include/fpdfapi/fpdf_parser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/include/fpdfapi/fpdf_parser.h b/core/include/fpdfapi/fpdf_parser.h index 32c1982907..84eacf6bf5 100644 --- a/core/include/fpdfapi/fpdf_parser.h +++ b/core/include/fpdfapi/fpdf_parser.h @@ -905,7 +905,7 @@ class IPDF_DataAvail { virtual DocAvailStatus IsDocAvail(IFX_DownloadHints* pHints) = 0; virtual void SetDocument(CPDF_Document* pDoc) = 0; - virtual int IsPageAvail(int iPage, IFX_DownloadHints* pHints) = 0; + virtual DocAvailStatus IsPageAvail(int iPage, IFX_DownloadHints* pHints) = 0; virtual FX_BOOL IsLinearized() = 0; virtual DocFormStatus IsFormAvail(IFX_DownloadHints* pHints) = 0; virtual DocLinearizationStatus IsLinearizedPDF() = 0; @@ -943,7 +943,7 @@ enum PDF_DATAAVAIL_STATUS { PDF_DATAAVAIL_CROSSREF_ITEM, PDF_DATAAVAIL_CROSSREF_STREAM, PDF_DATAAVAIL_TRAILER, - PDF_DATAAVAIL_LOADALLCRSOSSREF, + PDF_DATAAVAIL_LOADALLCROSSREF, PDF_DATAAVAIL_ROOT, PDF_DATAAVAIL_INFO, PDF_DATAAVAIL_ACROFORM, |