diff options
author | Nicolas Pena <npm@chromium.org> | 2017-07-14 10:00:21 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-14 14:18:45 +0000 |
commit | b6db208773e94b9d25f7dbd740859adbb8a60fdf (patch) | |
tree | 8f0426521a18b70303cea0fcccd8f29e3eeead24 /core/fxcodec/jbig2/JBig2_PatternDict.h | |
parent | 2b918c8d05c922287efbc8858f029026cee31442 (diff) | |
download | pdfium-b6db208773e94b9d25f7dbd740859adbb8a60fdf.tar.xz |
More unique_ptrs in JBIG2 code part 2
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 <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_PatternDict.h')
-rw-r--r-- | core/fxcodec/jbig2/JBig2_PatternDict.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/fxcodec/jbig2/JBig2_PatternDict.h b/core/fxcodec/jbig2/JBig2_PatternDict.h index dddd4747f0..ad55917d6b 100644 --- a/core/fxcodec/jbig2/JBig2_PatternDict.h +++ b/core/fxcodec/jbig2/JBig2_PatternDict.h @@ -7,17 +7,20 @@ #ifndef CORE_FXCODEC_JBIG2_JBIG2_PATTERNDICT_H_ #define CORE_FXCODEC_JBIG2_JBIG2_PATTERNDICT_H_ +#include <memory> +#include <vector> + #include "core/fxcodec/jbig2/JBig2_Define.h" #include "core/fxcodec/jbig2/JBig2_Image.h" class CJBig2_PatternDict { public: - CJBig2_PatternDict(); + explicit CJBig2_PatternDict(uint32_t dict_size); ~CJBig2_PatternDict(); uint32_t NUMPATS; - CJBig2_Image** HDPATS; + std::vector<std::unique_ptr<CJBig2_Image>> HDPATS; }; #endif // CORE_FXCODEC_JBIG2_JBIG2_PATTERNDICT_H_ |