summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_Context.h
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2018-05-14 14:50:49 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-14 14:50:49 +0000
commit22c24441a3a4bc1201c740360aa812bd18d7b374 (patch)
treeeeef757d5786d0886225045545d80fe5432ba6d5 /core/fxcodec/jbig2/JBig2_Context.h
parente20f0c4938f8f03467944ed0e71c0feb130e95f1 (diff)
downloadpdfium-22c24441a3a4bc1201c740360aa812bd18d7b374.tar.xz
Merge some values of JBig2_Result
This CL merges some of the values of JBig2_Result. The only checks are against Success and EndOfFile || EndOfPage, so we only need three values: Success, EndReached, and Failure (for anything that does not match either of those two). Change-Id: I552c54f2d70aa8e8bf52702dab4dfc00d528ef76 Reviewed-on: https://pdfium-review.googlesource.com/32393 Commit-Queue: Nicolás Peña Moreno <npm@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_Context.h')
-rw-r--r--core/fxcodec/jbig2/JBig2_Context.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/core/fxcodec/jbig2/JBig2_Context.h b/core/fxcodec/jbig2/JBig2_Context.h
index 148866a914..71215d0e8f 100644
--- a/core/fxcodec/jbig2/JBig2_Context.h
+++ b/core/fxcodec/jbig2/JBig2_Context.h
@@ -30,15 +30,7 @@ using CJBig2_CachePair =
#define JBIG2_MIN_SEGMENT_SIZE 11
-enum class JBig2_Result {
- Success,
- Failure,
- ErrorTooShort,
- ErrorFatal,
- ErrorLimit,
- EndOfPage,
- EndOfFile
-};
+enum class JBig2_Result { kSuccess, kFailure, kEndReached };
class CJBig2_Context {
public: