diff options
author | Lei Zhang <thestig@chromium.org> | 2017-04-05 18:42:22 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-06 01:58:05 +0000 |
commit | 1b22880748c3f3b3740699ae4c953a33f65ad10f (patch) | |
tree | 57d7155639ea2f19dea22cb08ec3ce0b76bcbf9b /fxbarcode/utils.h | |
parent | 0b18e1599dc9d07355c4ab6a069de33a536f7ba8 (diff) | |
download | pdfium-1b22880748c3f3b3740699ae4c953a33f65ad10f.tar.xz |
Change some fxbarcode to use return values.
No caller cares about the exception values anyway. Remove the unused
ones. Also use more std::unique_ptr to stop potential leaks.
Change-Id: Ic5955fb0d879f55e1c6a005c0204df50246dab19
Reviewed-on: https://pdfium-review.googlesource.com/3715
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.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/fxbarcode/utils.h b/fxbarcode/utils.h index df84091e9f..442e327784 100644 --- a/fxbarcode/utils.h +++ b/fxbarcode/utils.h @@ -59,63 +59,24 @@ enum BCFORMAT { #define BCFORMAT_ECLEVEL_H 3 #include <ctype.h> #define BCExceptionNO 0 -#define BCExceptionNotFound 1 -#define BCExceptionEndLessThanStart 2 -#define BCExceptionUnknownDecoder 3 -#define BCExceptionRotateNotSupported 4 #define BCExceptionHeightAndWidthMustBeAtLeast1 5 -#define BCExceptionRegionMustFitInsideMatrix 6 -#define BCExceptionCanNotCallGetDimensionOnNonSquareMatrix 7 #define BCExceptionFormatException 8 -#define BCExceptionIllegalArgumentMustMatchVersionSize 9 -#define BCExceptionChecksumException 10 -#define BCExceptionIllegalArgumentInvalidFirstDigit 11 -#define BCExceptionIllegalArgumentInvalidSecondDigit 12 -#define BCExceptionRuntimeDecodingInvalidISO_IEC 13 -#define BCExceptionRuntimeDecodingInvalidAlphanumeric 14 -#define BCExceptionLeftAndTopMustBeNonnegative 15 #define BCExceptionIllegalArgument 16 -#define BCExceptionBadECI 17 -#define BCExceptionUnSupportedBarcode 18 -#define BCExceptionUnSupportedString 19 #define BCExceptionDigitLengthMustBe8 20 -#define BCExceptionDataCheckException 21 -#define BCExceptionExtractNumberValueFromBitArray 22 -#define BCExceptionRead 23 -#define BCExceptionRequestedRowIsOutSizeTheImage 24 #define BCExceptionNoContents 26 #define BCExceptionUnSupportEclevel 27 -#define BCExceptionUnSupportMode 28 -#define BCExceptionReferenceMustBeBetween0And7 29 -#define BCExceptionBadErrorLocation 30 #define BCExceptionDegreeIsNegative 31 -#define BCExceptionDivideByZero 32 -#define BCExceptionCoefficientsSizeIsNull 33 -#define BCExceptionNoCorrectionBytes 34 -#define BCExceptionNoDataBytesProvided 35 -#define BCExceptionR_I_1IsZero 36 #define BCExceptionAIsZero 37 -#define BCExceptionIsZero 38 -#define BCExceptionDegreeNotMatchRoots 39 -#define BCExceptionContentsLengthShouldBetween1and80 40 #define BCExceptionOnlyEncodeCODE_128 41 #define BCExceptionOnlyEncodeCODE_39 42 #define BCExceptionOnlyEncodeEAN_13 43 #define BCExceptionOnlyEncodeEAN_8 44 -#define BCExceptionOnlyEncodeITF 45 #define BCExceptionDigitLengthShould13 46 -#define BCExceptionDigitLengthMustBe6or8or10or12or14or16or20or24or44 47 #define BCExceptionOnlyEncodeUPC_A 48 -#define BCExceptionDigitLengthShouldBe12 49 #define BCExceptionValueMustBeEither0or1 50 -#define BCExceptionReedsolomnDecodeException 51 #define BCExceptionBadIndexException 52 -#define BCExceptionBadValueException 53 -#define BCExceptionVersionMust1_40 56 -#define BCExceptionUnknown 57 #define BCExceptionNoSuchVersion 58 #define BCExceptionCannotFindBlockInfo 59 -#define BCExceptionDataTooBig 60 #define BCExceptionInvalidQRCode 61 #define BCExceptionDataTooMany 62 #define BCExceptionBitsNotEqualCacity 63 @@ -131,15 +92,8 @@ enum BCFORMAT { #define BCExceptionCharacterNotThisMode 75 #define BCExceptionBitsBytesNotMatch 76 #define BCExceptionInvalidateData 77 -#define BCExceptionLoadFile 78 -#define BCExceptionPDF417EncodeFail 79 #define BCExceptionFailToCreateBitmap 80 -#define BCExceptionLoadFontFail 81 #define BCExceptionOnlyEncodeCODEBAR 82 -#define BCExceptionCodabarShouldStartWithOneOfABCD 83 -#define BCExceptionCodabarShouldEndWithOneOfTNE 84 -#define BCExceptionCodabarEncodeCharsInvalid 85 -#define BCExceptionOnlyEncodeDATAMATRIX 86 #define BCExceptionCharactersOutsideISO88591Encoding 87 #define BCExceptionIllegalDataCodewords 88 #define BCExceptionCannotHandleThisNumberOfDataRegions 89 @@ -155,11 +109,6 @@ enum BCFORMAT { #define BCExceptionUnableToFitMessageInColumns 100 #define BCExceptionEncodedMessageContainsTooManyCodeWords 101 #define BCExceptionBitmapSizeError 102 -#define BCExceptionFormatInstance 102 -#define BCExceptionChecksumInstance 103 -#define BCExceptiontNotFoundInstance 104 -#define BCExceptionNotFoundInstance 105 -#define BCExceptionCannotMetadata 106 #define BCExceptionGeneric 107 #endif // FXBARCODE_UTILS_H_ |