From b6db208773e94b9d25f7dbd740859adbb8a60fdf Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Fri, 14 Jul 2017 10:00:21 -0400 Subject: More unique_ptrs in JBIG2 code part 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CL makes HDPATS in CJBig2_PatternDict be a vector of unique_ptr. Change-Id: Ib23aed6323d4a988b2eedc4bfe95f2098d32c188 Reviewed-on: https://pdfium-review.googlesource.com/7871 Commit-Queue: Nicolás Peña Reviewed-by: Tom Sepez --- core/fxcodec/jbig2/JBig2_Image.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core/fxcodec/jbig2/JBig2_Image.h') diff --git a/core/fxcodec/jbig2/JBig2_Image.h b/core/fxcodec/jbig2/JBig2_Image.h index 54529ef868..807468aa0b 100644 --- a/core/fxcodec/jbig2/JBig2_Image.h +++ b/core/fxcodec/jbig2/JBig2_Image.h @@ -7,6 +7,8 @@ #ifndef CORE_FXCODEC_JBIG2_JBIG2_IMAGE_H_ #define CORE_FXCODEC_JBIG2_JBIG2_IMAGE_H_ +#include + #include "core/fxcodec/jbig2/JBig2_Define.h" struct FX_RECT; @@ -60,7 +62,10 @@ class CJBig2_Image { JBig2ComposeOp op, const FX_RECT* pSrcRect); - CJBig2_Image* subImage(int32_t x, int32_t y, int32_t w, int32_t h); + std::unique_ptr subImage(int32_t x, + int32_t y, + int32_t w, + int32_t h); void expand(int32_t h, bool v); uint8_t* m_pData; -- cgit v1.2.3