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

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

Issue 1832113003: Replace CFX_DWordArray with CFX_ArrayTemplate<FX_DWORD>. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Re-upload 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 unified diff | Download patch
« no previous file with comments | « core/fpdfapi/fpdf_parser/include/cpdf_document.h ('k') | core/include/fxge/fx_font.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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 if (iStart < 0) { 391 if (iStart < 0) {
392 return -1; 392 return -1;
393 } 393 }
394 for (; iStart < (int)m_nSize; iStart++) 394 for (; iStart < (int)m_nSize; iStart++)
395 if (((TYPE*)m_pData)[iStart] == data) { 395 if (((TYPE*)m_pData)[iStart] == data) {
396 return iStart; 396 return iStart;
397 } 397 }
398 return -1; 398 return -1;
399 } 399 }
400 }; 400 };
401 typedef CFX_ArrayTemplate<FX_DWORD> CFX_DWordArray;
402 401
403 #ifdef PDF_ENABLE_XFA 402 #ifdef PDF_ENABLE_XFA
404 typedef CFX_ArrayTemplate<CFX_WideStringC> CFX_WideStringCArray; 403 typedef CFX_ArrayTemplate<CFX_WideStringC> CFX_WideStringCArray;
405 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray; 404 typedef CFX_ArrayTemplate<FX_FLOAT> CFX_FloatArray;
406 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray; 405 typedef CFX_ArrayTemplate<uint8_t> CFX_ByteArray;
407 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array; 406 typedef CFX_ArrayTemplate<int32_t> CFX_Int32Array;
408 typedef CFX_ArrayTemplate<void*> CFX_PtrArray; 407 typedef CFX_ArrayTemplate<void*> CFX_PtrArray;
409 #endif // PDF_ENABLE_XFA 408 #endif // PDF_ENABLE_XFA
410 409
411 #ifdef PDF_ENABLE_XFA 410 #ifdef PDF_ENABLE_XFA
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 FX_FLOAT c; 1143 FX_FLOAT c;
1145 FX_FLOAT d; 1144 FX_FLOAT d;
1146 FX_FLOAT e; 1145 FX_FLOAT e;
1147 FX_FLOAT f; 1146 FX_FLOAT f;
1148 FX_FLOAT g; 1147 FX_FLOAT g;
1149 FX_FLOAT h; 1148 FX_FLOAT h;
1150 FX_FLOAT i; 1149 FX_FLOAT i;
1151 }; 1150 };
1152 1151
1153 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_ 1152 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/include/cpdf_document.h ('k') | core/include/fxge/fx_font.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698