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

Side by Side Diff: core/fxcrt/fx_basic_array.cpp

Issue 1825953002: Move core/include/fxcrt to core/fxcrt/include. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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/fxcrt/fx_arabic.cpp ('k') | core/fxcrt/fx_basic_bstring.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 #include "core/include/fxcrt/fx_basic.h" 7 #include "core/fxcrt/include/fx_basic.h"
8 #include "third_party/base/numerics/safe_math.h" 8 #include "third_party/base/numerics/safe_math.h"
9 9
10 CFX_BasicArray::CFX_BasicArray(int unit_size) 10 CFX_BasicArray::CFX_BasicArray(int unit_size)
11 : m_pData(NULL), m_nSize(0), m_nMaxSize(0) { 11 : m_pData(NULL), m_nSize(0), m_nMaxSize(0) {
12 if (unit_size < 0 || unit_size > (1 << 28)) { 12 if (unit_size < 0 || unit_size > (1 << 28)) {
13 m_nUnitSize = 4; 13 m_nUnitSize = 4;
14 } else { 14 } else {
15 m_nUnitSize = unit_size; 15 m_nUnitSize = unit_size;
16 } 16 }
17 } 17 }
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 pIndex[i % m_IndexSize] = NULL; 333 pIndex[i % m_IndexSize] = NULL;
334 } 334 }
335 } else { 335 } else {
336 FX_Free(m_pIndex); 336 FX_Free(m_pIndex);
337 m_pIndex = NULL; 337 m_pIndex = NULL;
338 } 338 }
339 } 339 }
340 m_DataSize -= count; 340 m_DataSize -= count;
341 } 341 }
342 #endif // PDF_ENABLE_XFA 342 #endif // PDF_ENABLE_XFA
OLDNEW
« no previous file with comments | « core/fxcrt/fx_arabic.cpp ('k') | core/fxcrt/fx_basic_bstring.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698