summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-28 19:56:19 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-28 19:56:19 +0000
commit1ff9b7ffa653de1d25c5e013d731054815b13e86 (patch)
treee620f7fadd5cd78716fa023da95ce80804d3638c /fpdfsdk
parent0e12ed7557f060539122d535dcfc717e8763b138 (diff)
downloadpdfium-1ff9b7ffa653de1d25c5e013d731054815b13e86.tar.xz
Remove CollectionSize from fpdfppo.chromium/3280
Bug: pdfium:774 Change-Id: Id13f051bdab8970d469b51a48b1946b6dc86d7dd Reviewed-on: https://pdfium-review.googlesource.com/19631 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/fpdfppo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/fpdfsdk/fpdfppo.cpp b/fpdfsdk/fpdfppo.cpp
index 3caba0e1e4..4df758a591 100644
--- a/fpdfsdk/fpdfppo.cpp
+++ b/fpdfsdk/fpdfppo.cpp
@@ -21,7 +21,6 @@
#include "core/fxcrt/unowned_ptr.h"
#include "fpdfsdk/fsdk_define.h"
#include "third_party/base/ptr_util.h"
-#include "third_party/base/stl_util.h"
namespace {
@@ -196,8 +195,7 @@ bool CPDF_PageOrganizer::ExportPage(const std::vector<uint16_t>& pageNums,
int nIndex) {
int curpage = nIndex;
auto pObjNumberMap = pdfium::MakeUnique<ObjectNumberMap>();
- int nSize = pdfium::CollectionSize<int>(pageNums);
- for (int i = 0; i < nSize; ++i) {
+ for (size_t i = 0; i < pageNums.size(); ++i) {
CPDF_Dictionary* pCurPageDict = m_pDestPDFDoc->CreateNewPage(curpage);
CPDF_Dictionary* pSrcPageDict = m_pSrcPDFDoc->GetPage(pageNums[i] - 1);
if (!pSrcPageDict || !pCurPageDict)