summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_PatternDict.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_PatternDict.h')
-rw-r--r--core/fxcodec/jbig2/JBig2_PatternDict.h7
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_