summaryrefslogtreecommitdiff
path: root/fxbarcode/pdf417/BC_PDF417ErrorCorrection.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-24 21:55:21 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-24 21:55:21 +0000
commitd8a3bc9ce941062fa4dd8cc2d03b16af402adafe (patch)
tree1f87a6c3b4b77738c5cf7ec7a16101b82f731eff /fxbarcode/pdf417/BC_PDF417ErrorCorrection.cpp
parent9cbc37b4a5bfb3932e5f9a50c552d7b913178337 (diff)
downloadpdfium-d8a3bc9ce941062fa4dd8cc2d03b16af402adafe.tar.xz
Use ASSERT() consistently. Replace assert() usage.
ASSERT() is PDFium's wrapper for cross-platform wrapper for assert(). Change-Id: Ie2a98a8e1de101f93aa9bf667d6f125d11d129cd Reviewed-on: https://pdfium-review.googlesource.com/c/44539 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxbarcode/pdf417/BC_PDF417ErrorCorrection.cpp')
-rw-r--r--fxbarcode/pdf417/BC_PDF417ErrorCorrection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxbarcode/pdf417/BC_PDF417ErrorCorrection.cpp b/fxbarcode/pdf417/BC_PDF417ErrorCorrection.cpp
index ade3eb584d..4ca40ef045 100644
--- a/fxbarcode/pdf417/BC_PDF417ErrorCorrection.cpp
+++ b/fxbarcode/pdf417/BC_PDF417ErrorCorrection.cpp
@@ -135,8 +135,8 @@ bool CBC_PDF417ErrorCorrection::generateErrorCorrection(
const WideString& dataCodewords,
int32_t errorCorrectionLevel,
WideString* result) {
- assert(result);
- assert(result->IsEmpty());
+ ASSERT(result);
+ ASSERT(result->IsEmpty());
int32_t k = getErrorCorrectionCodewordCount(errorCorrectionLevel);
if (k < 0)