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

Side by Side Diff: xfa/fgas/crt/fgas_utils.h

Issue 1937453002: Replace CFX_PtryArray with typesafe CFX_ArrayTemplate, Part 7 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | xfa/fgas/crt/fgas_utils.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FGAS_CRT_FGAS_UTILS_H_ 7 #ifndef XFA_FGAS_CRT_FGAS_UTILS_H_
8 #define XFA_FGAS_CRT_FGAS_UTILS_H_ 8 #define XFA_FGAS_CRT_FGAS_UTILS_H_
9 9
10 #include "core/fxcrt/include/fx_coordinates.h" 10 #include "core/fxcrt/include/fx_coordinates.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 uint8_t* AddSpaceTo(int32_t index); 195 uint8_t* AddSpaceTo(int32_t index);
196 uint8_t* GetAt(int32_t index) const; 196 uint8_t* GetAt(int32_t index) const;
197 int32_t Append(const CFX_BaseMassArrayImp& src, 197 int32_t Append(const CFX_BaseMassArrayImp& src,
198 int32_t iStart = 0, 198 int32_t iStart = 0,
199 int32_t iCount = -1); 199 int32_t iCount = -1);
200 int32_t Copy(const CFX_BaseMassArrayImp& src, 200 int32_t Copy(const CFX_BaseMassArrayImp& src,
201 int32_t iStart = 0, 201 int32_t iStart = 0,
202 int32_t iCount = -1); 202 int32_t iCount = -1);
203 int32_t RemoveLast(int32_t iCount = -1); 203 int32_t RemoveLast(int32_t iCount = -1);
204 void RemoveAll(FX_BOOL bLeaveMemory = FALSE); 204 void RemoveAll(FX_BOOL bLeaveMemory = FALSE);
205
205 int32_t m_iChunkSize; 206 int32_t m_iChunkSize;
206 int32_t m_iBlockSize; 207 int32_t m_iBlockSize;
207 int32_t m_iChunkCount; 208 int32_t m_iChunkCount;
208 int32_t m_iBlockCount; 209 int32_t m_iBlockCount;
209 CFX_PtrArray* m_pData; 210 CFX_ArrayTemplate<void*>* m_pData;
Tom Sepez 2016/04/29 16:03:16 Note: this really does want to be a void*, since i
210 211
211 protected: 212 protected:
212 void Append(int32_t iDstStart, 213 void Append(int32_t iDstStart,
213 const CFX_BaseMassArrayImp& src, 214 const CFX_BaseMassArrayImp& src,
214 int32_t iSrcStart = 0, 215 int32_t iSrcStart = 0,
215 int32_t iSrcCount = -1); 216 int32_t iSrcCount = -1);
216 }; 217 };
217 218
218 class CFX_BaseMassArray : public CFX_Target { 219 class CFX_BaseMassArray : public CFX_Target {
219 protected: 220 protected:
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 pLast->SetNextNode(pChild); 729 pLast->SetNextNode(pChild);
729 } 730 }
730 return pChild; 731 return pChild;
731 } 732 }
732 733
733 protected: 734 protected:
734 CPLTreeNode m_Root; 735 CPLTreeNode m_Root;
735 }; 736 };
736 737
737 #endif // XFA_FGAS_CRT_FGAS_UTILS_H_ 738 #endif // XFA_FGAS_CRT_FGAS_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fgas/crt/fgas_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698