summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfppo.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-09-27 10:53:11 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-27 16:11:38 +0000
commit875e98c581952478f3a3ccef9b2f2e3ed06c5346 (patch)
tree8e0d7e032056bf4c73d6da43c0f3ce4eadb74dfd /fpdfsdk/fpdfppo.cpp
parentcc3a3ee3ebcc1baabdfa7ffca5876dbbfa3980c1 (diff)
downloadpdfium-875e98c581952478f3a3ccef9b2f2e3ed06c5346.tar.xz
Remove FX_STRSIZE and replace with size_t
BUG=pdfium:828 Change-Id: I5c40237433ebabaeabdb43aec9cdf783e41dfe16 Reviewed-on: https://pdfium-review.googlesource.com/13230 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfppo.cpp')
-rw-r--r--fpdfsdk/fpdfppo.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/fpdfsdk/fpdfppo.cpp b/fpdfsdk/fpdfppo.cpp
index 153ae2e20c..3caba0e1e4 100644
--- a/fpdfsdk/fpdfppo.cpp
+++ b/fpdfsdk/fpdfppo.cpp
@@ -77,16 +77,16 @@ bool ParserPageRangeString(ByteString rangstring,
return true;
rangstring.Remove(' ');
- FX_STRSIZE nLength = rangstring.GetLength();
+ size_t nLength = rangstring.GetLength();
ByteString cbCompareString("0123456789-,");
- for (FX_STRSIZE i = 0; i < nLength; ++i) {
+ for (size_t i = 0; i < nLength; ++i) {
if (!cbCompareString.Contains(rangstring[i]))
return false;
}
ByteString cbMidRange;
- FX_STRSIZE nStringFrom = 0;
- pdfium::Optional<FX_STRSIZE> nStringTo = 0;
+ size_t nStringFrom = 0;
+ pdfium::Optional<size_t> nStringTo = 0;
while (nStringTo < nLength) {
nStringTo = rangstring.Find(',', nStringFrom);
if (!nStringTo.has_value())
@@ -106,7 +106,7 @@ bool ParserPageRangeString(ByteString rangstring,
return false;
nMid = nMid.value() + 1;
- FX_STRSIZE nEnd = cbMidRange.GetLength() - nMid.value();
+ size_t nEnd = cbMidRange.GetLength() - nMid.value();
if (nEnd == 0)
return false;