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/oned/BC_OnedCode39Writer.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'xfa/fxbarcode/oned/BC_OnedCode39Writer.cpp') diff --git a/xfa/fxbarcode/oned/BC_OnedCode39Writer.cpp b/xfa/fxbarcode/oned/BC_OnedCode39Writer.cpp index 3edf87ba30..9d5fdda968 100644 --- a/xfa/fxbarcode/oned/BC_OnedCode39Writer.cpp +++ b/xfa/fxbarcode/oned/BC_OnedCode39Writer.cpp @@ -45,7 +45,7 @@ CBC_OnedCode39Writer::CBC_OnedCode39Writer() { m_iWideNarrRatio = 3; } CBC_OnedCode39Writer::~CBC_OnedCode39Writer() {} -FX_BOOL CBC_OnedCode39Writer::CheckContentValidity( +bool CBC_OnedCode39Writer::CheckContentValidity( const CFX_WideStringC& contents) { for (int32_t i = 0; i < contents.GetLength(); i++) { FX_WCHAR ch = contents.GetAt(i); @@ -56,9 +56,9 @@ FX_BOOL CBC_OnedCode39Writer::CheckContentValidity( ch == (FX_WCHAR)'%') { continue; } - return FALSE; + return false; } - return TRUE; + return true; } CFX_WideString CBC_OnedCode39Writer::FilterContents( @@ -110,19 +110,19 @@ CFX_WideString CBC_OnedCode39Writer::RenderTextContents( return renderContents; } -FX_BOOL CBC_OnedCode39Writer::SetTextLocation(BC_TEXT_LOC location) { +bool CBC_OnedCode39Writer::SetTextLocation(BC_TEXT_LOC location) { if (location < BC_TEXT_LOC_NONE || location > BC_TEXT_LOC_BELOWEMBED) { - return FALSE; + return false; } m_locTextLoc = location; - return TRUE; + return true; } -FX_BOOL CBC_OnedCode39Writer::SetWideNarrowRatio(int32_t ratio) { +bool CBC_OnedCode39Writer::SetWideNarrowRatio(int32_t ratio) { if (ratio < 2 || ratio > 3) { - return FALSE; + return false; } m_iWideNarrRatio = ratio; - return TRUE; + return true; } uint8_t* CBC_OnedCode39Writer::Encode(const CFX_ByteString& contents, BCFORMAT format, @@ -272,7 +272,7 @@ CFX_WideString CBC_OnedCode39Writer::encodedContents( void CBC_OnedCode39Writer::RenderResult(const CFX_WideStringC& contents, uint8_t* code, int32_t codeLength, - FX_BOOL isDevice, + bool isDevice, int32_t& e) { CFX_WideString encodedCon = encodedContents(contents, e); BC_EXCEPTION_CHECK_ReturnVoid(e); -- cgit v1.2.3