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

Side by Side Diff: core/fxcrt/include/fx_basic.h

Issue 1941863002: Replace CFX_PtrArray with typesafe CFX_ArrayTemplate, part 11 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits. 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/fxbarcode/pdf417/BC_PDF417BarcodeValue.h » ('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 CORE_FXCRT_INCLUDE_FX_BASIC_H_ 7 #ifndef CORE_FXCRT_INCLUDE_FX_BASIC_H_
8 #define CORE_FXCRT_INCLUDE_FX_BASIC_H_ 8 #define CORE_FXCRT_INCLUDE_FX_BASIC_H_
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 } 369 }
370 return -1; 370 return -1;
371 } 371 }
372 }; 372 };
373 373
374 #ifdef PDF_ENABLE_XFA 374 #ifdef PDF_ENABLE_XFA
375 typedef CFX_ArrayTemplate<CFX_WideStringC> CFX_WideStringCArray; 375 typedef CFX_ArrayTemplate<CFX_WideStringC> CFX_WideStringCArray;
376 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray; 376 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray;
377 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray; 377 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray;
378 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array; 378 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array;
379 typedef CFX_ArrayTemplate<void*> CFX_PtrArray;
380 #endif // PDF_ENABLE_XFA 379 #endif // PDF_ENABLE_XFA
381 380
382 #ifdef PDF_ENABLE_XFA 381 #ifdef PDF_ENABLE_XFA
383 template <class ObjectClass> 382 template <class ObjectClass>
384 class CFX_ObjectArray : public CFX_BasicArray { 383 class CFX_ObjectArray : public CFX_BasicArray {
385 public: 384 public:
386 CFX_ObjectArray() : CFX_BasicArray(sizeof(ObjectClass)) {} 385 CFX_ObjectArray() : CFX_BasicArray(sizeof(ObjectClass)) {}
387 386
388 ~CFX_ObjectArray() { RemoveAll(); } 387 ~CFX_ObjectArray() { RemoveAll(); }
389 388
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 FX_FLOAT c; 1049 FX_FLOAT c;
1051 FX_FLOAT d; 1050 FX_FLOAT d;
1052 FX_FLOAT e; 1051 FX_FLOAT e;
1053 FX_FLOAT f; 1052 FX_FLOAT f;
1054 FX_FLOAT g; 1053 FX_FLOAT g;
1055 FX_FLOAT h; 1054 FX_FLOAT h;
1056 FX_FLOAT i; 1055 FX_FLOAT i;
1057 }; 1056 };
1058 1057
1059 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_ 1058 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fxbarcode/pdf417/BC_PDF417BarcodeValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698