summaryrefslogtreecommitdiff
path: root/fxbarcode/datamatrix/BC_X12Encoder.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-04-27 13:21:00 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-27 21:25:59 +0000
commit6714ff81237e36ce0a21dbbff3e0a549dfc561a7 (patch)
tree4d479e4cb214b17d2b41c88ff907500c6910d1a7 /fxbarcode/datamatrix/BC_X12Encoder.cpp
parentf452f56021f2f1455a6f556836dc00ddda9114a9 (diff)
downloadpdfium-6714ff81237e36ce0a21dbbff3e0a549dfc561a7.tar.xz
Remove CBC_HighLevelEncoder::illegalCharacter().
It always return a failure. Change-Id: Ib318bbdb99b3ea38fba8ceb5733c6dcb8f14bbbf Reviewed-on: https://pdfium-review.googlesource.com/4590 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxbarcode/datamatrix/BC_X12Encoder.cpp')
-rw-r--r--fxbarcode/datamatrix/BC_X12Encoder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fxbarcode/datamatrix/BC_X12Encoder.cpp b/fxbarcode/datamatrix/BC_X12Encoder.cpp
index dd8254bff7..9103908b1a 100644
--- a/fxbarcode/datamatrix/BC_X12Encoder.cpp
+++ b/fxbarcode/datamatrix/BC_X12Encoder.cpp
@@ -20,6 +20,8 @@
* limitations under the License.
*/
+#include "fxbarcode/datamatrix/BC_X12Encoder.h"
+
#include "fxbarcode/BC_Dimension.h"
#include "fxbarcode/common/BC_CommonBitMatrix.h"
#include "fxbarcode/datamatrix/BC_C40Encoder.h"
@@ -28,7 +30,6 @@
#include "fxbarcode/datamatrix/BC_HighLevelEncoder.h"
#include "fxbarcode/datamatrix/BC_SymbolInfo.h"
#include "fxbarcode/datamatrix/BC_SymbolShapeHint.h"
-#include "fxbarcode/datamatrix/BC_X12Encoder.h"
CBC_X12Encoder::CBC_X12Encoder() {}
CBC_X12Encoder::~CBC_X12Encoder() {}
@@ -93,9 +94,8 @@ int32_t CBC_X12Encoder::encodeChar(wchar_t c, CFX_WideString& sb, int32_t& e) {
} else if (c >= 'A' && c <= 'Z') {
sb += (wchar_t)(c - 65 + 14);
} else {
- CBC_HighLevelEncoder::illegalCharacter(c, e);
- if (e != BCExceptionNO)
- return -1;
+ e = BCExceptionIllegalArgument;
+ return -1;
}
return 1;
}