From bfa9a824a20f37c2dd7111012b46c929cf2ed8a0 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 9 Jun 2015 13:24:12 -0700 Subject: Merge to XFA: Use stdint.h types throughout PDFium. Near-automatic merge, plus re-running scripts to update additional usage. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1172793002 --- xfa/src/fxbarcode/BC_Utils.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'xfa/src/fxbarcode/BC_Utils.cpp') diff --git a/xfa/src/fxbarcode/BC_Utils.cpp b/xfa/src/fxbarcode/BC_Utils.cpp index 3a04ebda2b..8ddbb51d49 100644 --- a/xfa/src/fxbarcode/BC_Utils.cpp +++ b/xfa/src/fxbarcode/BC_Utils.cpp @@ -5,36 +5,36 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "barcode.h" -FX_BOOL BC_FX_ByteString_Replace(CFX_ByteString &dst, FX_DWORD first, FX_DWORD last, FX_INT32 count, FX_CHAR c) +FX_BOOL BC_FX_ByteString_Replace(CFX_ByteString &dst, FX_DWORD first, FX_DWORD last, int32_t count, FX_CHAR c) { if (first > last || count <= 0) { return FALSE; } dst.Delete(first, last - first); - for (FX_INT32 i = 0; i < count; i ++) { + for (int32_t i = 0; i < count; i ++) { dst.Insert(0, c); } return TRUE; } -void BC_FX_ByteString_Append(CFX_ByteString &dst, FX_INT32 count, FX_CHAR c) +void BC_FX_ByteString_Append(CFX_ByteString &dst, int32_t count, FX_CHAR c) { - for (FX_INT32 i = 0; i < count; i ++) { + for (int32_t i = 0; i < count; i ++) { dst += c; } } void BC_FX_ByteString_Append(CFX_ByteString &dst, const CFX_ByteArray &ba) { - for (FX_INT32 i = 0; i < ba.GetSize(); i ++) { + for (int32_t i = 0; i < ba.GetSize(); i ++) { dst += ba[i]; } } void BC_FX_PtrArray_Sort(CFX_PtrArray &src, BC_PtrArrayCompareCallback fun) { - FX_INT32 nLength = src.GetSize(); + int32_t nLength = src.GetSize(); FX_BOOL changed = true; do { changed = false; - for (FX_INT32 i = 0; i < nLength - 1; i++) { + for (int32_t i = 0; i < nLength - 1; i++) { if ( fun(src[i + 1], src[i]) ) { void *temp = src[i]; src.SetAt(i, src[i + 1]); -- cgit v1.2.3