| Index: xfa/fxbarcode/cbc_ean8.cpp
|
| diff --git a/xfa/fxbarcode/cbc_ean8.cpp b/xfa/fxbarcode/cbc_ean8.cpp
|
| index 4635c6b55d89b51d8dd18f7bac8e3a6a84f03d8a..2c1ce24b556d240d2ed1c851c17e296389dbeaaf 100644
|
| --- a/xfa/fxbarcode/cbc_ean8.cpp
|
| +++ b/xfa/fxbarcode/cbc_ean8.cpp
|
| @@ -47,12 +47,12 @@ CFX_WideString CBC_EAN8::Preprocess(const CFX_WideStringC& contents) {
|
| return encodeContents;
|
| }
|
|
|
| -FX_BOOL CBC_EAN8::Encode(const CFX_WideStringC& contents,
|
| - FX_BOOL isDevice,
|
| - int32_t& e) {
|
| +bool CBC_EAN8::Encode(const CFX_WideStringC& contents,
|
| + bool isDevice,
|
| + int32_t& e) {
|
| if (contents.IsEmpty()) {
|
| e = BCExceptionNoContents;
|
| - return FALSE;
|
| + return false;
|
| }
|
| BCFORMAT format = BCFORMAT_EAN_8;
|
| int32_t outWidth = 0;
|
| @@ -62,28 +62,28 @@ FX_BOOL CBC_EAN8::Encode(const CFX_WideStringC& contents,
|
| m_renderContents = encodeContents;
|
| uint8_t* data = static_cast<CBC_OnedEAN8Writer*>(m_pBCWriter.get())
|
| ->Encode(byteString, format, outWidth, outHeight, e);
|
| - BC_EXCEPTION_CHECK_ReturnValue(e, FALSE);
|
| + BC_EXCEPTION_CHECK_ReturnValue(e, false);
|
| static_cast<CBC_OneDimWriter*>(m_pBCWriter.get())
|
| ->RenderResult(encodeContents.AsStringC(), data, outWidth, isDevice, e);
|
| FX_Free(data);
|
| - BC_EXCEPTION_CHECK_ReturnValue(e, FALSE);
|
| - return TRUE;
|
| + BC_EXCEPTION_CHECK_ReturnValue(e, false);
|
| + return true;
|
| }
|
|
|
| -FX_BOOL CBC_EAN8::RenderDevice(CFX_RenderDevice* device,
|
| - const CFX_Matrix* matrix,
|
| - int32_t& e) {
|
| +bool CBC_EAN8::RenderDevice(CFX_RenderDevice* device,
|
| + const CFX_Matrix* matrix,
|
| + int32_t& e) {
|
| static_cast<CBC_OneDimWriter*>(m_pBCWriter.get())
|
| ->RenderDeviceResult(device, matrix, m_renderContents.AsStringC(), e);
|
| - BC_EXCEPTION_CHECK_ReturnValue(e, FALSE);
|
| - return TRUE;
|
| + BC_EXCEPTION_CHECK_ReturnValue(e, false);
|
| + return true;
|
| }
|
|
|
| -FX_BOOL CBC_EAN8::RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) {
|
| +bool CBC_EAN8::RenderBitmap(CFX_DIBitmap*& pOutBitmap, int32_t& e) {
|
| static_cast<CBC_OneDimWriter*>(m_pBCWriter.get())
|
| ->RenderBitmapResult(pOutBitmap, m_renderContents.AsStringC(), e);
|
| - BC_EXCEPTION_CHECK_ReturnValue(e, FALSE);
|
| - return TRUE;
|
| + BC_EXCEPTION_CHECK_ReturnValue(e, false);
|
| + return true;
|
| }
|
|
|
| BC_TYPE CBC_EAN8::GetType() {
|
|
|