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/BC_Writer.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'xfa/fxbarcode/BC_Writer.cpp') diff --git a/xfa/fxbarcode/BC_Writer.cpp b/xfa/fxbarcode/BC_Writer.cpp index 835a2f0309..73163522cb 100644 --- a/xfa/fxbarcode/BC_Writer.cpp +++ b/xfa/fxbarcode/BC_Writer.cpp @@ -17,31 +17,31 @@ CBC_Writer::CBC_Writer() { m_backgroundColor = 0xffffffff; } CBC_Writer::~CBC_Writer() {} -FX_BOOL CBC_Writer::SetCharEncoding(int32_t encoding) { +bool CBC_Writer::SetCharEncoding(int32_t encoding) { m_CharEncoding = encoding; - return TRUE; + return true; } -FX_BOOL CBC_Writer::SetModuleHeight(int32_t moduleHeight) { +bool CBC_Writer::SetModuleHeight(int32_t moduleHeight) { if (moduleHeight > 10 || moduleHeight < 1) { - return FALSE; + return false; } m_ModuleHeight = moduleHeight; - return TRUE; + return true; } -FX_BOOL CBC_Writer::SetModuleWidth(int32_t moduleWidth) { +bool CBC_Writer::SetModuleWidth(int32_t moduleWidth) { if (moduleWidth > 10 || moduleWidth < 1) { - return FALSE; + return false; } m_ModuleWidth = moduleWidth; - return TRUE; + return true; } -FX_BOOL CBC_Writer::SetHeight(int32_t height) { +bool CBC_Writer::SetHeight(int32_t height) { m_Height = height; - return TRUE; + return true; } -FX_BOOL CBC_Writer::SetWidth(int32_t width) { +bool CBC_Writer::SetWidth(int32_t width) { m_Width = width; - return TRUE; + return true; } void CBC_Writer::SetBackgroundColor(FX_ARGB backgroundColor) { m_backgroundColor = backgroundColor; -- cgit v1.2.3