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

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

Issue 1425153006: Fix all relative includes to third_party. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month 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/src/fxcodec/jbig2/JBig2_TrdProc.cpp ('k') | core/src/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 "../../include/fxcrt/fx_basic.h" 7 #include "../../include/fxcrt/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 }
18 CFX_BasicArray::~CFX_BasicArray() { 18 CFX_BasicArray::~CFX_BasicArray() {
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 FX_Free(pIndex[i % m_IndexSize]); 333 FX_Free(pIndex[i % m_IndexSize]);
334 pIndex[i % m_IndexSize] = NULL; 334 pIndex[i % m_IndexSize] = NULL;
335 } 335 }
336 } else { 336 } else {
337 FX_Free(m_pIndex); 337 FX_Free(m_pIndex);
338 m_pIndex = NULL; 338 m_pIndex = NULL;
339 } 339 }
340 } 340 }
341 m_DataSize -= count; 341 m_DataSize -= count;
342 } 342 }
OLDNEW
« no previous file with comments | « core/src/fxcodec/jbig2/JBig2_TrdProc.cpp ('k') | core/src/fxcrt/fx_basic_bstring.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698