diff options
author | Ryan Harrison <rharrison@chromium.org> | 2017-09-27 10:58:52 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-09-27 16:12:07 +0000 |
commit | bacf75eeeb5d89fe60b2c77584350ca1b1432bd5 (patch) | |
tree | bbf956a86b103f5e470338e585ce8b924b08cd8b /core/fxcrt/widestring.cpp | |
parent | 875e98c581952478f3a3ccef9b2f2e3ed06c5346 (diff) | |
download | pdfium-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/widestring.cpp')
-rw-r--r-- | core/fxcrt/widestring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcrt/widestring.cpp b/core/fxcrt/widestring.cpp index a4632ee9db..b9d6dc2080 100644 --- a/core/fxcrt/widestring.cpp +++ b/core/fxcrt/widestring.cpp @@ -314,7 +314,7 @@ WideString::WideString(const WideStringView& stringSrc) { } WideString::WideString(const WideStringView& str1, const WideStringView& str2) { - FX_SAFE_STRSIZE nSafeLen = str1.GetLength(); + FX_SAFE_SIZE_T nSafeLen = str1.GetLength(); nSafeLen += str2.GetLength(); size_t nNewLen = nSafeLen.ValueOrDie(); @@ -328,7 +328,7 @@ WideString::WideString(const WideStringView& str1, const WideStringView& str2) { } WideString::WideString(const std::initializer_list<WideStringView>& list) { - FX_SAFE_STRSIZE nSafeLen = 0; + FX_SAFE_SIZE_T nSafeLen = 0; for (const auto& item : list) nSafeLen += item.GetLength(); |