summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_edit/editint.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-04-21 15:20:40 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-21 15:20:40 -0700
commit0d2dc680e36b8ba7608cb062efe8488abd388985 (patch)
tree1993e8196b70ad23c0a8617d87198cba8e92413e /core/fpdfapi/fpdf_edit/editint.h
parent3fea70cb133ca71c800482853473797a352ece16 (diff)
downloadpdfium-0d2dc680e36b8ba7608cb062efe8488abd388985.tar.xz
Replace CFX_ArrayTemplate with std::vector in CPDF_ObjectStream
Replace two parallel arrays with an array of pairs. Several methods always returned same value, make void instead. Review URL: https://codereview.chromium.org/1908153002
Diffstat (limited to 'core/fpdfapi/fpdf_edit/editint.h')
-rw-r--r--core/fpdfapi/fpdf_edit/editint.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/core/fpdfapi/fpdf_edit/editint.h b/core/fpdfapi/fpdf_edit/editint.h
index 69a64b9aba..a7774050ae 100644
--- a/core/fpdfapi/fpdf_edit/editint.h
+++ b/core/fpdfapi/fpdf_edit/editint.h
@@ -18,26 +18,26 @@ class CPDF_Object;
class CPDF_ObjectStream {
public:
- CPDF_ObjectStream();
-
- FX_BOOL Start();
+ struct Item {
+ uint32_t objnum;
+ FX_STRSIZE offset;
+ };
- int32_t CompressIndirectObject(uint32_t dwObjNum, const CPDF_Object* pObj);
- int32_t CompressIndirectObject(uint32_t dwObjNum,
- const uint8_t* pBuffer,
- uint32_t dwSize);
+ CPDF_ObjectStream();
+ void Start();
FX_FILESIZE End(CPDF_Creator* pCreator);
+ void CompressIndirectObject(uint32_t dwObjNum, const CPDF_Object* pObj);
+ void CompressIndirectObject(uint32_t dwObjNum,
+ const uint8_t* pBuffer,
+ uint32_t dwSize);
- CFX_ArrayTemplate<uint32_t> m_ObjNumArray;
-
+ std::vector<Item> m_Items;
CFX_ByteTextBuf m_Buffer;
uint32_t m_dwObjNum;
int32_t m_index;
-
- protected:
- CFX_ArrayTemplate<uint32_t> m_OffsetArray;
};
+
class CPDF_XRefStream {
public:
struct Index {