From 6655d95a8586c1f272d5d418bb63514abbe1d695 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 10 Aug 2018 17:41:29 +0000 Subject: Remove |typedef struct| in favor of just |struct|. Because I saw one in some other code and decided to hunt them all. These are all defined in C++ context, so no chance of C compatiblity. Note that such a declaration without a struct tag will bypass the [chromium-style] out-of-line constructor/destructor warnings, so add constructors/destructors where required. Change-Id: Ib821d8bc2f68ccf7028b0f73432e8e7c93a953ba Reviewed-on: https://pdfium-review.googlesource.com/39851 Commit-Queue: Tom Sepez Reviewed-by: Lei Zhang --- core/fxcodec/gif/cfx_gif.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'core/fxcodec/gif/cfx_gif.h') diff --git a/core/fxcodec/gif/cfx_gif.h b/core/fxcodec/gif/cfx_gif.h index dd0d719bcf..9ca7211997 100644 --- a/core/fxcodec/gif/cfx_gif.h +++ b/core/fxcodec/gif/cfx_gif.h @@ -116,7 +116,10 @@ enum class CFX_GifDecodeStatus { InsufficientDestSize, // Only used internally by CGifLZWDecoder::Decode() }; -typedef struct { +struct CFX_GifImage { + CFX_GifImage(); + ~CFX_GifImage(); + std::unique_ptr image_GCE; std::vector local_palettes; std::vector row_buffer; @@ -125,6 +128,6 @@ typedef struct { uint8_t code_exp; uint32_t data_pos; int32_t row_num; -} CFX_GifImage; +}; #endif // CORE_FXCODEC_GIF_CFX_GIF_H_ -- cgit v1.2.3