From 57f228d7527594de55951fa05e6082ba62382c57 Mon Sep 17 00:00:00 2001 From: Jane Liu Date: Thu, 13 Jul 2017 18:10:30 -0400 Subject: Updated pdfium_test's WriteAnnot() Updated pdfium_test's WriteAnnot() (corresponding to the --annot flag) to output more annotation info using the new APIs. Also fixed some nits in the annotation API code. Bug=pdfium:737 Change-Id: I3f40e83279ec82529f732eb94f309ab7d4992d3c Reviewed-on: https://pdfium-review.googlesource.com/7791 Reviewed-by: dsinclair Commit-Queue: Jane Liu --- fpdfsdk/fpdfannot.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'fpdfsdk/fpdfannot.cpp') diff --git a/fpdfsdk/fpdfannot.cpp b/fpdfsdk/fpdfannot.cpp index faa4f4c8fb..412c80b5de 100644 --- a/fpdfsdk/fpdfannot.cpp +++ b/fpdfsdk/fpdfannot.cpp @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com - #include "public/fpdf_annot.h" #include @@ -390,7 +388,7 @@ DLLEXPORT int STDCALL FPDFAnnot_GetObjectCount(FPDF_ANNOTATION annot) { pAnnot->SetForm(pStream); } - return pAnnot->GetForm()->GetPageObjectList()->size(); + return pdfium::CollectionSize(*pAnnot->GetForm()->GetPageObjectList()); } DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFAnnot_GetObject(FPDF_ANNOTATION annot, -- cgit v1.2.3