From 967aa0793c0b0cf2722ec8720e9d797266a9fde7 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 8 May 2018 13:40:20 +0000 Subject: Rename CPDF_Document::GetPage() to GetPageDictionary(). Avoids a conflict should we wish to have the document actually track pages, with a GetPage() that returns CPDF_Page. Do the same thing to CPDF_DataAvail along the way. Add some missing consts as well. Change-Id: I2cb2213cc4c0649662fceab80407ee4a3f4cf30e Reviewed-on: https://pdfium-review.googlesource.com/32158 Commit-Queue: dsinclair Reviewed-by: dsinclair --- fxjs/cjs_document.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fxjs/cjs_document.cpp') diff --git a/fxjs/cjs_document.cpp b/fxjs/cjs_document.cpp index 07701902ea..de3c93c0cb 100644 --- a/fxjs/cjs_document.cpp +++ b/fxjs/cjs_document.cpp @@ -1251,7 +1251,7 @@ CJS_Return CJS_Document::getPageNthWord( if (nPageNo < 0 || nPageNo >= pDocument->GetPageCount()) return CJS_Return(JSGetStringFromID(JSMessage::kValueError)); - CPDF_Dictionary* pPageDict = pDocument->GetPage(nPageNo); + CPDF_Dictionary* pPageDict = pDocument->GetPageDictionary(nPageNo); if (!pPageDict) return CJS_Return(false); @@ -1300,7 +1300,7 @@ CJS_Return CJS_Document::getPageNumWords( if (nPageNo < 0 || nPageNo >= pDocument->GetPageCount()) return CJS_Return(JSGetStringFromID(JSMessage::kValueError)); - CPDF_Dictionary* pPageDict = pDocument->GetPage(nPageNo); + CPDF_Dictionary* pPageDict = pDocument->GetPageDictionary(nPageNo); if (!pPageDict) return CJS_Return(false); -- cgit v1.2.3