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

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

Issue 1653253002: Kill CFX_ByteArray in master. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: ... and its gone. Created 4 years, 10 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 | « core/include/fpdfdoc/fpdf_doc.h ('k') | core/src/fpdfdoc/doc_form.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 CORE_INCLUDE_FXCRT_FX_BASIC_H_ 7 #ifndef CORE_INCLUDE_FXCRT_FX_BASIC_H_
8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_ 8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 if (iStart < 0) { 364 if (iStart < 0) {
365 return -1; 365 return -1;
366 } 366 }
367 for (; iStart < (int)m_nSize; iStart++) 367 for (; iStart < (int)m_nSize; iStart++)
368 if (((TYPE*)m_pData)[iStart] == data) { 368 if (((TYPE*)m_pData)[iStart] == data) {
369 return iStart; 369 return iStart;
370 } 370 }
371 return -1; 371 return -1;
372 } 372 }
373 }; 373 };
374 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray; 374
375 typedef CFX_ArrayTemplate<FX_WORD> CFX_WordArray; 375 typedef CFX_ArrayTemplate<FX_WORD> CFX_WordArray;
376 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray; 376 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray;
377 typedef CFX_ArrayTemplate<void*> CFX_PtrArray; 377 typedef CFX_ArrayTemplate<void*> CFX_PtrArray;
378 typedef CFX_ArrayTemplate<FX_FILESIZE> CFX_FileSizeArray; 378 typedef CFX_ArrayTemplate<FX_FILESIZE> CFX_FileSizeArray;
379 379
380 template <class ObjectClass> 380 template <class ObjectClass>
381 class CFX_ObjectArray : public CFX_BasicArray { 381 class CFX_ObjectArray : public CFX_BasicArray {
382 public: 382 public:
383 CFX_ObjectArray() : CFX_BasicArray(sizeof(ObjectClass)) {} 383 CFX_ObjectArray() : CFX_BasicArray(sizeof(ObjectClass)) {}
384 384
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 FX_FLOAT c; 973 FX_FLOAT c;
974 FX_FLOAT d; 974 FX_FLOAT d;
975 FX_FLOAT e; 975 FX_FLOAT e;
976 FX_FLOAT f; 976 FX_FLOAT f;
977 FX_FLOAT g; 977 FX_FLOAT g;
978 FX_FLOAT h; 978 FX_FLOAT h;
979 FX_FLOAT i; 979 FX_FLOAT i;
980 }; 980 };
981 981
982 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ 982 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_
OLDNEW
« no previous file with comments | « core/include/fpdfdoc/fpdf_doc.h ('k') | core/src/fpdfdoc/doc_form.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698