| 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 "core/include/fpdfapi/fpdf_objects.h" |
| 8 |
| 7 #include "core/include/fpdfapi/fpdf_parser.h" | 9 #include "core/include/fpdfapi/fpdf_parser.h" |
| 8 | |
| 9 #include "core/include/fxcrt/fx_string.h" | 10 #include "core/include/fxcrt/fx_string.h" |
| 10 #include "third_party/base/stl_util.h" | 11 #include "third_party/base/stl_util.h" |
| 11 | 12 |
| 12 namespace { | 13 namespace { |
| 13 | 14 |
| 14 const FX_DWORD kBlockSize = 1024; | 15 const FX_DWORD kBlockSize = 1024; |
| 15 | 16 |
| 16 } // namespace | 17 } // namespace |
| 17 | 18 |
| 18 // static | 19 // static |
| (...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1175 } | 1176 } |
| 1176 pObj->m_ObjNum = objnum; | 1177 pObj->m_ObjNum = objnum; |
| 1177 m_IndirectObjs.SetAt((void*)(uintptr_t)objnum, pObj); | 1178 m_IndirectObjs.SetAt((void*)(uintptr_t)objnum, pObj); |
| 1178 if (m_LastObjNum < objnum) | 1179 if (m_LastObjNum < objnum) |
| 1179 m_LastObjNum = objnum; | 1180 m_LastObjNum = objnum; |
| 1180 return TRUE; | 1181 return TRUE; |
| 1181 } | 1182 } |
| 1182 FX_DWORD CPDF_IndirectObjects::GetLastObjNum() const { | 1183 FX_DWORD CPDF_IndirectObjects::GetLastObjNum() const { |
| 1183 return m_LastObjNum; | 1184 return m_LastObjNum; |
| 1184 } | 1185 } |
| OLD | NEW |