From cc3a3ee3ebcc1baabdfa7ffca5876dbbfa3980c1 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Tue, 26 Sep 2017 16:59:12 -0400 Subject: Make names of GIF types less opaque A lot of the structs in the GIF code use acronyms that are non-obvious unless you are familar with the GIF spec, and even then lead to lots of looking back. Making the naming more explicit. Also converted GifImage to be a struct, since it didn't have any methods defined for it. BUG=pdfium:903 Change-Id: I97ca2adfdc4ada8bcaef5f8f317c1dea7365d70d Reviewed-on: https://pdfium-review.googlesource.com/14836 Reviewed-by: dsinclair Commit-Queue: Ryan Harrison --- core/fxcodec/lgif/cfx_lzwdecoder.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/fxcodec/lgif/cfx_lzwdecoder.h') diff --git a/core/fxcodec/lgif/cfx_lzwdecoder.h b/core/fxcodec/lgif/cfx_lzwdecoder.h index 913df670c6..9dbf15d9b7 100644 --- a/core/fxcodec/lgif/cfx_lzwdecoder.h +++ b/core/fxcodec/lgif/cfx_lzwdecoder.h @@ -14,10 +14,10 @@ class CFX_LZWDecoder { public: - struct tag_Table { + typedef struct { uint16_t prefix; uint8_t suffix; - }; + } CodeEntry; // Returns nullptr on error static std::unique_ptr Create(uint8_t color_exp, @@ -44,7 +44,7 @@ class CFX_LZWDecoder { uint8_t code_first_; uint8_t stack_[GIF_MAX_LZW_CODE]; size_t stack_size_; - tag_Table code_table_[GIF_MAX_LZW_CODE]; + CodeEntry code_table_[GIF_MAX_LZW_CODE]; uint16_t code_old_; uint8_t* next_in_; uint32_t avail_in_; -- cgit v1.2.3