From 22c24441a3a4bc1201c740360aa812bd18d7b374 Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Mon, 14 May 2018 14:50:49 +0000 Subject: Merge some values of JBig2_Result MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Lei Zhang --- core/fxcodec/jbig2/JBig2_Context.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'core/fxcodec/jbig2/JBig2_Context.h') 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: -- cgit v1.2.3