From d19e912dd469e4bdad9f3020e1f6eb98f10f3470 Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 2 Nov 2016 15:43:18 -0700 Subject: Remove FX_BOOL from xfa. Review-Url: https://codereview.chromium.org/2467203003 --- xfa/fxbarcode/pdf417/BC_PDF417Writer.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'xfa/fxbarcode/pdf417/BC_PDF417Writer.cpp') diff --git a/xfa/fxbarcode/pdf417/BC_PDF417Writer.cpp b/xfa/fxbarcode/pdf417/BC_PDF417Writer.cpp index 43cf09e549..4c9b5cb15c 100644 --- a/xfa/fxbarcode/pdf417/BC_PDF417Writer.cpp +++ b/xfa/fxbarcode/pdf417/BC_PDF417Writer.cpp @@ -29,19 +29,19 @@ #include "xfa/fxbarcode/pdf417/BC_PDF417Writer.h" CBC_PDF417Writer::CBC_PDF417Writer() { - m_bFixedSize = FALSE; + m_bFixedSize = false; } CBC_PDF417Writer::~CBC_PDF417Writer() { - m_bTruncated = TRUE; + m_bTruncated = true; } -FX_BOOL CBC_PDF417Writer::SetErrorCorrectionLevel(int32_t level) { +bool CBC_PDF417Writer::SetErrorCorrectionLevel(int32_t level) { if (level < 0 || level > 8) { - return FALSE; + return false; } m_iCorrectLevel = level; - return TRUE; + return true; } -void CBC_PDF417Writer::SetTruncated(FX_BOOL truncated) { +void CBC_PDF417Writer::SetTruncated(bool truncated) { m_bTruncated = truncated; } uint8_t* CBC_PDF417Writer::Encode(const CFX_WideString& contents, @@ -70,10 +70,10 @@ uint8_t* CBC_PDF417Writer::Encode(const CFX_WideString& contents, int32_t height = outHeight; outWidth = barcodeMatrix->getWidth(); outHeight = barcodeMatrix->getHeight(); - FX_BOOL rotated = FALSE; + bool rotated = false; if ((height > width) ^ (outWidth < outHeight)) { rotateArray(originalScale, outHeight, outWidth); - rotated = TRUE; + rotated = true; int32_t temp = outHeight; outHeight = outWidth; outWidth = temp; -- cgit v1.2.3