summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-09-25 12:59:29 +0200
committerChromium commit bot <commit-bot@chromium.org>2017-09-25 12:44:35 +0000
commit92627618a93720c6153828b8a8d1c6ed17c6e91f (patch)
tree9a9eb6b76ff402da02bd68ffc5e321967b3da4c5 /samples
parentf5777a117a7557507616eaf585de5eb266531e16 (diff)
downloadpdfium-92627618a93720c6153828b8a8d1c6ed17c6e91f.tar.xz
API: rename FPDFPage_CountObject() to FPDFPage_CountObjects()
Keep the old name, but mark it as deprecated and don't use it in own code. Change-Id: I17b88dccacf494a03562c0d003cfcb2bc03bf430 Reviewed-on: https://pdfium-review.googlesource.com/14750 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'samples')
-rw-r--r--samples/pdfium_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 40f12a318b..0c002a8c63 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -1136,7 +1136,7 @@ void SaveAttachments(FPDF_DOCUMENT doc, const std::string& name) {
}
void SaveImages(FPDF_PAGE page, const char* pdf_name, int page_num) {
- for (int i = 0; i < FPDFPage_CountObject(page); ++i) {
+ for (int i = 0; i < FPDFPage_CountObjects(page); ++i) {
FPDF_PAGEOBJECT obj = FPDFPage_GetObject(page, i);
if (FPDFPageObj_GetType(obj) != FPDF_PAGEOBJ_IMAGE)
continue;