summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_Segment.h
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-08-30 16:22:54 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-31 16:21:28 +0000
commitfd42fc91f4fb4a2d85c8434e6ac2ec5d0ff6977b (patch)
tree2399834ade358176de19223686ea5f91a9c9bbb0 /core/fxcodec/jbig2/JBig2_Segment.h
parentaf59cf16b40b6243a2194ced3e5f476ec655edb3 (diff)
downloadpdfium-fd42fc91f4fb4a2d85c8434e6ac2ec5d0ff6977b.tar.xz
Use vector instead of pointer in CJBig2_Segment
Change-Id: Ic54e0491d9b33a06b5f85963f8127bfa4263f4d6 Reviewed-on: https://pdfium-review.googlesource.com/12450 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_Segment.h')
-rw-r--r--core/fxcodec/jbig2/JBig2_Segment.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fxcodec/jbig2/JBig2_Segment.h b/core/fxcodec/jbig2/JBig2_Segment.h
index 26af0f6890..5dc57a37d4 100644
--- a/core/fxcodec/jbig2/JBig2_Segment.h
+++ b/core/fxcodec/jbig2/JBig2_Segment.h
@@ -8,6 +8,7 @@
#define CORE_FXCODEC_JBIG2_JBIG2_SEGMENT_H_
#include <memory>
+#include <vector>
#include "core/fxcodec/jbig2/JBig2_Define.h"
#include "core/fxcodec/jbig2/JBig2_HuffmanTable.h"
@@ -47,7 +48,7 @@ class CJBig2_Segment {
uint8_t c;
} m_cFlags;
int32_t m_nReferred_to_segment_count;
- uint32_t* m_pReferred_to_segment_numbers;
+ std::vector<uint32_t> m_Referred_to_segment_numbers;
uint32_t m_dwPage_association;
uint32_t m_dwData_length;