diff options
Diffstat (limited to 'xfa/fxbarcode/qrcode/BC_QRCoderMode.cpp')
-rw-r--r-- | xfa/fxbarcode/qrcode/BC_QRCoderMode.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/xfa/fxbarcode/qrcode/BC_QRCoderMode.cpp b/xfa/fxbarcode/qrcode/BC_QRCoderMode.cpp index 87f32edddf..a1283dda93 100644 --- a/xfa/fxbarcode/qrcode/BC_QRCoderMode.cpp +++ b/xfa/fxbarcode/qrcode/BC_QRCoderMode.cpp @@ -98,13 +98,10 @@ CBC_QRCoderMode* CBC_QRCoderMode::ForBits(int32_t bits, int32_t& e) { return sFNC1_SECOND_POSITION; case 0x0D: return sGBK; - default: { + default: e = BCExceptionUnsupportedMode; - if (e != BCExceptionNO) - return nullptr; - } + return nullptr; } - return nullptr; } int32_t CBC_QRCoderMode::GetBits() const { @@ -119,8 +116,7 @@ int32_t CBC_QRCoderMode::GetCharacterCountBits(CBC_QRCoderVersion* version, int32_t& e) const { if (m_characterCountBitsForVersions.empty()) { e = BCExceptionCharacterNotThisMode; - if (e != BCExceptionNO) - return 0; + return 0; } int32_t number = version->GetVersionNumber(); int32_t offset; |