diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-27 18:35:06 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-27 18:35:06 +0000 |
commit | 2d950563beb291441c0e1c90cfde8227f7025327 (patch) | |
tree | f8b04259830c23510cb79b282b39a14098d32984 /fpdfsdk | |
parent | f351ba03ebf31103c0a6a0c00b1477d39c060139 (diff) | |
download | pdfium-2d950563beb291441c0e1c90cfde8227f7025327.tar.xz |
Convert CPDF_ClipPath::Get{Path|Text}Count to size_t
This CL updates the various call sites to use size_t instead of other
types.
Bug: pdfium:774
Change-Id: Id8b75728b61c0ca1b15bc815831c885d33374f7b
Reviewed-on: https://pdfium-review.googlesource.com/19410
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fpdf_transformpage.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fpdfsdk/fpdf_transformpage.cpp b/fpdfsdk/fpdf_transformpage.cpp index 4f29fd69d6..565d90be4c 100644 --- a/fpdfsdk/fpdf_transformpage.cpp +++ b/fpdfsdk/fpdf_transformpage.cpp @@ -275,16 +275,14 @@ FPDF_EXPORT void FPDF_CALLCONV FPDFPage_InsertClipPath(FPDF_PAGE page, std::ostringstream strClip; CPDF_ClipPath* pClipPath = (CPDF_ClipPath*)clipPath; - uint32_t i; - for (i = 0; i < pClipPath->GetPathCount(); i++) { + for (size_t i = 0; i < pClipPath->GetPathCount(); ++i) { CPDF_Path path = pClipPath->GetPath(i); - int iClipType = pClipPath->GetClipType(i); if (path.GetPoints().empty()) { // Empty clipping (totally clipped out) strClip << "0 0 m W n "; } else { OutputPath(strClip, path); - if (iClipType == FXFILL_WINDING) + if (pClipPath->GetClipType(i) == FXFILL_WINDING) strClip << "W n\n"; else strClip << "W* n\n"; |