summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfannot.cpp
diff options
context:
space:
mode:
authorJane Liu <janeliulwq@google.com>2017-07-13 18:10:30 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-14 14:23:25 +0000
commit57f228d7527594de55951fa05e6082ba62382c57 (patch)
treef353e26d965edeb7511b0f65a9476e1dbad954dd /fpdfsdk/fpdfannot.cpp
parentb6db208773e94b9d25f7dbd740859adbb8a60fdf (diff)
downloadpdfium-57f228d7527594de55951fa05e6082ba62382c57.tar.xz
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 <dsinclair@chromium.org> Commit-Queue: Jane Liu <janeliulwq@google.com>
Diffstat (limited to 'fpdfsdk/fpdfannot.cpp')
-rw-r--r--fpdfsdk/fpdfannot.cpp4
1 files changed, 1 insertions, 3 deletions
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 <memory>
@@ -390,7 +388,7 @@ DLLEXPORT int STDCALL FPDFAnnot_GetObjectCount(FPDF_ANNOTATION annot) {
pAnnot->SetForm(pStream);
}
- return pAnnot->GetForm()->GetPageObjectList()->size();
+ return pdfium::CollectionSize<int>(*pAnnot->GetForm()->GetPageObjectList());
}
DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFAnnot_GetObject(FPDF_ANNOTATION annot,