Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2339)

Unified Diff: core/fpdfapi/fpdf_edit/editint.h

Issue 1908153002: Replace CFX_ArrayTemplate with std::vector in CPDF_ObjectStream (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/fpdf_edit/editint.h
diff --git a/core/fpdfapi/fpdf_edit/editint.h b/core/fpdfapi/fpdf_edit/editint.h
index 69a64b9aba462452cd8629e8d01c899da6128995..a7774050ae602123ff0a9a5ddd3359cc8a2f5be9 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 {
« no previous file with comments | « no previous file | core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698