summaryrefslogtreecommitdiff
path: root/fxbarcode/utils.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-04-04 16:15:13 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-04 23:35:59 +0000
commitb2a40475ade2fe34a406472e53787bdac5a6950a (patch)
tree70676e292db220552549a427a662a9c88241ff1a /fxbarcode/utils.h
parent20a909e655147e21f966b95af6b683d85736c8c2 (diff)
downloadpdfium-b2a40475ade2fe34a406472e53787bdac5a6950a.tar.xz
Clean up QRCoderBitVector.
Use std::vector and return booleans results when possible. Change-Id: If3ce4559f137fb449fd1ab818750558a1b5f8df0 Reviewed-on: https://pdfium-review.googlesource.com/3561 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxbarcode/utils.h')
-rw-r--r--fxbarcode/utils.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/fxbarcode/utils.h b/fxbarcode/utils.h
index f87c10ac7e..df84091e9f 100644
--- a/fxbarcode/utils.h
+++ b/fxbarcode/utils.h
@@ -58,8 +58,6 @@ enum BCFORMAT {
#define BCFORMAT_ECLEVEL_Q 2
#define BCFORMAT_ECLEVEL_H 3
#include <ctype.h>
-#define FXSYS_IntMax INT_MAX
-#define FXSYS_Isdigit isdigit
#define BCExceptionNO 0
#define BCExceptionNotFound 1
#define BCExceptionEndLessThanStart 2
@@ -113,8 +111,6 @@ enum BCFORMAT {
#define BCExceptionReedsolomnDecodeException 51
#define BCExceptionBadIndexException 52
#define BCExceptionBadValueException 53
-#define BCExceptionBadNumBitsException 54
-#define BCExceptioncanNotOperatexorOperator 55
#define BCExceptionVersionMust1_40 56
#define BCExceptionUnknown 57
#define BCExceptionNoSuchVersion 58
@@ -130,8 +126,6 @@ enum BCFORMAT {
#define BCExceptionInvalidateMaskPattern 68
#define BCExceptionNullPointer 69
#define BCExceptionBadMask 70
-#define BCExceptionBitSizeNot15 71
-#define BCExceptionBitSizeNot18 72
#define BCExceptionInvalidateImageData 73
#define BCExceptionHeight_8BeZero 74
#define BCExceptionCharacterNotThisMode 75
@@ -154,7 +148,6 @@ enum BCFORMAT {
#define BCExceptionIllegalStateMessageLengthInvalid 92
#define BCExceptionIllegalArgumentNotGigits 93
#define BCExceptionIllegalStateIllegalMode 94
-#define BCExceptionOnlyEncodePDF417 95
#define BCExceptionNonEncodableCharacterDetected 96
#define BCExceptionErrorCorrectionLevelMustBeBetween0And8 97
#define BCExceptionNoRecommendationPossible 98
@@ -167,5 +160,6 @@ enum BCFORMAT {
#define BCExceptiontNotFoundInstance 104
#define BCExceptionNotFoundInstance 105
#define BCExceptionCannotMetadata 106
+#define BCExceptionGeneric 107
#endif // FXBARCODE_UTILS_H_