From f40380f454042c9783fe30260a0e3df8b32c5c92 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 12 Oct 2018 18:31:51 +0000 Subject: Rename CPDF_{Array,Dictionary}::GetCount() to size(). Make them compatible with pdfium::CollectionSize(). Change-Id: Ibef3b182e35a7eca7c656cf590462782de0cc157 Reviewed-on: https://pdfium-review.googlesource.com/c/43937 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- fxjs/cjs_document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fxjs') diff --git a/fxjs/cjs_document.cpp b/fxjs/cjs_document.cpp index 7f81a37f72..9899deb593 100644 --- a/fxjs/cjs_document.cpp +++ b/fxjs/cjs_document.cpp @@ -1443,7 +1443,7 @@ CJS_Result CJS_Document::gotoNamedDest( const CPDF_Array* arrayObject = dest.GetArray(); std::vector scrollPositionArray; if (arrayObject) { - for (size_t i = 2; i < arrayObject->GetCount(); i++) + for (size_t i = 2; i < arrayObject->size(); i++) scrollPositionArray.push_back(arrayObject->GetFloatAt(i)); } pRuntime->BeginBlock(); -- cgit v1.2.3