diff options
author | tsepez <tsepez@chromium.org> | 2016-11-02 15:43:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-02 15:43:19 -0700 |
commit | d19e912dd469e4bdad9f3020e1f6eb98f10f3470 (patch) | |
tree | 239cb568a80445f14a1ab9b63dcaaddcce67e1cc /xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp | |
parent | 12f3e4a58f05850b93af35619cb04f0231d86acc (diff) | |
download | pdfium-d19e912dd469e4bdad9f3020e1f6eb98f10f3470.tar.xz |
Remove FX_BOOL from xfa.
Review-Url: https://codereview.chromium.org/2467203003
Diffstat (limited to 'xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp')
-rw-r--r-- | xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp b/xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp index 01873f0f04..adb12f25b1 100644 --- a/xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp +++ b/xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp @@ -31,7 +31,7 @@ #include "xfa/fxbarcode/qrcode/BC_QRCoderVersion.h" CBC_QRCodeWriter::CBC_QRCodeWriter() { - m_bFixedSize = TRUE; + m_bFixedSize = true; m_iCorrectLevel = 1; m_iVersion = 0; } @@ -48,20 +48,20 @@ void CBC_QRCodeWriter::ReleaseAll() { CBC_QRCoderVersion::Destroy(); } -FX_BOOL CBC_QRCodeWriter::SetVersion(int32_t version) { +bool CBC_QRCodeWriter::SetVersion(int32_t version) { if (version < 0 || version > 40) { - return FALSE; + return false; } m_iVersion = version; - return TRUE; + return true; } -FX_BOOL CBC_QRCodeWriter::SetErrorCorrectionLevel(int32_t level) { +bool CBC_QRCodeWriter::SetErrorCorrectionLevel(int32_t level) { if (level < 0 || level > 3) { - return FALSE; + return false; } m_iCorrectLevel = level; - return TRUE; + return true; } uint8_t* CBC_QRCodeWriter::Encode(const CFX_WideString& contents, |