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

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

Issue 1671113002: Remove CFX_FileSizeArray. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Add size_t cast 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/fpdfapi/fpdf_parser.h ('k') | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 for (; iStart < (int)m_nSize; iStart++) 431 for (; iStart < (int)m_nSize; iStart++)
432 if (((TYPE*)m_pData)[iStart] == data) { 432 if (((TYPE*)m_pData)[iStart] == data) {
433 return iStart; 433 return iStart;
434 } 434 }
435 return -1; 435 return -1;
436 } 436 }
437 }; 437 };
438 typedef CFX_ArrayTemplate<FX_WORD> CFX_WordArray; 438 typedef CFX_ArrayTemplate<FX_WORD> CFX_WordArray;
439 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray; 439 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray;
440 typedef CFX_ArrayTemplate<void*> CFX_PtrArray; 440 typedef CFX_ArrayTemplate<void*> CFX_PtrArray;
441 typedef CFX_ArrayTemplate<FX_FILESIZE> CFX_FileSizeArray;
442 #ifdef PDF_ENABLE_XFA 441 #ifdef PDF_ENABLE_XFA
443 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray; 442 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray;
444 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray; 443 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray;
445 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array; 444 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array;
446 #endif // PDF_ENABLE_XFA 445 #endif // PDF_ENABLE_XFA
447 446
448 template <class ObjectClass> 447 template <class ObjectClass>
449 class CFX_ObjectArray : public CFX_BasicArray { 448 class CFX_ObjectArray : public CFX_BasicArray {
450 public: 449 public:
451 CFX_ObjectArray() : CFX_BasicArray(sizeof(ObjectClass)) {} 450 CFX_ObjectArray() : CFX_BasicArray(sizeof(ObjectClass)) {}
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 FX_FLOAT c; 1219 FX_FLOAT c;
1221 FX_FLOAT d; 1220 FX_FLOAT d;
1222 FX_FLOAT e; 1221 FX_FLOAT e;
1223 FX_FLOAT f; 1222 FX_FLOAT f;
1224 FX_FLOAT g; 1223 FX_FLOAT g;
1225 FX_FLOAT h; 1224 FX_FLOAT h;
1226 FX_FLOAT i; 1225 FX_FLOAT i;
1227 }; 1226 };
1228 1227
1229 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ 1228 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_parser.h ('k') | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698