summaryrefslogtreecommitdiff
path: root/core/fxcrt/bytestring.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-09-27 10:58:52 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-27 16:12:07 +0000
commitbacf75eeeb5d89fe60b2c77584350ca1b1432bd5 (patch)
treebbf956a86b103f5e470338e585ce8b924b08cd8b /core/fxcrt/bytestring.cpp
parent875e98c581952478f3a3ccef9b2f2e3ed06c5346 (diff)
downloadpdfium-bacf75eeeb5d89fe60b2c77584350ca1b1432bd5.tar.xz
Replace FX_SAFE_STRSIZE with FX_SAFE_SIZE_T
BUG=pdfium:828 Change-Id: If9560338c456b28f968e743a90a3629791d87df0 Reviewed-on: https://pdfium-review.googlesource.com/14832 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcrt/bytestring.cpp')
-rw-r--r--core/fxcrt/bytestring.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcrt/bytestring.cpp b/core/fxcrt/bytestring.cpp
index bd195dda1d..3079eb7b72 100644
--- a/core/fxcrt/bytestring.cpp
+++ b/core/fxcrt/bytestring.cpp
@@ -125,7 +125,7 @@ ByteString::ByteString(const ByteStringView& stringSrc) {
}
ByteString::ByteString(const ByteStringView& str1, const ByteStringView& str2) {
- FX_SAFE_STRSIZE nSafeLen = str1.GetLength();
+ FX_SAFE_SIZE_T nSafeLen = str1.GetLength();
nSafeLen += str2.GetLength();
size_t nNewLen = nSafeLen.ValueOrDie();
@@ -139,7 +139,7 @@ ByteString::ByteString(const ByteStringView& str1, const ByteStringView& str2) {
}
ByteString::ByteString(const std::initializer_list<ByteStringView>& list) {
- FX_SAFE_STRSIZE nSafeLen = 0;
+ FX_SAFE_SIZE_T nSafeLen = 0;
for (const auto& item : list)
nSafeLen += item.GetLength();