summaryrefslogtreecommitdiff
path: root/fxbarcode/qrcode/BC_QRCoderVersion.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-04-04 16:15:13 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-04 23:35:59 +0000
commitb2a40475ade2fe34a406472e53787bdac5a6950a (patch)
tree70676e292db220552549a427a662a9c88241ff1a /fxbarcode/qrcode/BC_QRCoderVersion.cpp
parent20a909e655147e21f966b95af6b683d85736c8c2 (diff)
downloadpdfium-b2a40475ade2fe34a406472e53787bdac5a6950a.tar.xz
Clean up QRCoderBitVector.
Use std::vector and return booleans results when possible. Change-Id: If3ce4559f137fb449fd1ab818750558a1b5f8df0 Reviewed-on: https://pdfium-review.googlesource.com/3561 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxbarcode/qrcode/BC_QRCoderVersion.cpp')
-rw-r--r--fxbarcode/qrcode/BC_QRCoderVersion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxbarcode/qrcode/BC_QRCoderVersion.cpp b/fxbarcode/qrcode/BC_QRCoderVersion.cpp
index ff7cbc4007..f0b708dfc3 100644
--- a/fxbarcode/qrcode/BC_QRCoderVersion.cpp
+++ b/fxbarcode/qrcode/BC_QRCoderVersion.cpp
@@ -382,7 +382,7 @@ CBC_QRCoderVersion* CBC_QRCoderVersion::GetProvisionalVersionForDimension(
CBC_QRCoderVersion* CBC_QRCoderVersion::DecodeVersionInformation(
int32_t versionBits,
int32_t& e) {
- int32_t bestDifference = FXSYS_IntMax;
+ int32_t bestDifference = INT_MAX;
int32_t bestVersion = 0;
for (int32_t i = 0; i < 34; i++) {
int32_t targetVersion = VERSION_DECODE_INFO[i];