OLD | NEW |
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/fpdfapi/fpdf_parser.h" | 7 #include "core/include/fpdfapi/fpdf_parser.h" |
8 #include "../../../include/fxcrt/fx_string.h" | 8 |
| 9 #include "core/include/fxcrt/fx_string.h" |
9 | 10 |
10 // static | 11 // static |
11 int CPDF_Object::s_nCurRefDepth = 0; | 12 int CPDF_Object::s_nCurRefDepth = 0; |
12 | 13 |
13 void CPDF_Object::Release() { | 14 void CPDF_Object::Release() { |
14 if (m_ObjNum) { | 15 if (m_ObjNum) { |
15 return; | 16 return; |
16 } | 17 } |
17 Destroy(); | 18 Destroy(); |
18 } | 19 } |
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1186 } | 1187 } |
1187 pObj->m_ObjNum = objnum; | 1188 pObj->m_ObjNum = objnum; |
1188 m_IndirectObjs.SetAt((void*)(uintptr_t)objnum, pObj); | 1189 m_IndirectObjs.SetAt((void*)(uintptr_t)objnum, pObj); |
1189 if (m_LastObjNum < objnum) { | 1190 if (m_LastObjNum < objnum) { |
1190 m_LastObjNum = objnum; | 1191 m_LastObjNum = objnum; |
1191 } | 1192 } |
1192 } | 1193 } |
1193 FX_DWORD CPDF_IndirectObjects::GetLastObjNum() const { | 1194 FX_DWORD CPDF_IndirectObjects::GetLastObjNum() const { |
1194 return m_LastObjNum; | 1195 return m_LastObjNum; |
1195 } | 1196 } |
OLD | NEW |