summaryrefslogtreecommitdiff
path: root/xfa/src/fxbarcode/BC_Utils.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-06-09 13:24:12 -0700
committerTom Sepez <tsepez@chromium.org>2015-06-09 13:24:12 -0700
commitbfa9a824a20f37c2dd7111012b46c929cf2ed8a0 (patch)
tree4cfbe682869d89900f33751c37f6a84865beeb0a /xfa/src/fxbarcode/BC_Utils.cpp
parentb116136da234afcad018bb44a3ccb64b9ad2a554 (diff)
downloadpdfium-bfa9a824a20f37c2dd7111012b46c929cf2ed8a0.tar.xz
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
Diffstat (limited to 'xfa/src/fxbarcode/BC_Utils.cpp')
-rw-r--r--xfa/src/fxbarcode/BC_Utils.cpp14
1 files changed, 7 insertions, 7 deletions
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]);