| 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" | 7 #include "core/include/fpdfapi/fpdf_objects.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "core/include/fpdfapi/cpdf_parser.h" |
| 11 #include "core/include/fpdfapi/fpdf_parser.h" | 12 #include "core/include/fpdfapi/fpdf_parser.h" |
| 12 #include "core/include/fxcrt/fx_string.h" | 13 #include "core/include/fxcrt/fx_string.h" |
| 13 #include "third_party/base/stl_util.h" | 14 #include "third_party/base/stl_util.h" |
| 14 | 15 |
| 15 CPDF_Object::~CPDF_Object() {} | 16 CPDF_Object::~CPDF_Object() {} |
| 16 | 17 |
| 17 CPDF_Object* CPDF_Object::GetDirect() const { | 18 CPDF_Object* CPDF_Object::GetDirect() const { |
| 18 return const_cast<CPDF_Object*>(this); | 19 return const_cast<CPDF_Object*>(this); |
| 19 } | 20 } |
| 20 | 21 |
| (...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1131 pObj->Destroy(); | 1132 pObj->Destroy(); |
| 1132 return FALSE; | 1133 return FALSE; |
| 1133 } | 1134 } |
| 1134 it->second->Destroy(); | 1135 it->second->Destroy(); |
| 1135 } | 1136 } |
| 1136 pObj->m_ObjNum = objnum; | 1137 pObj->m_ObjNum = objnum; |
| 1137 m_IndirectObjs[objnum] = pObj; | 1138 m_IndirectObjs[objnum] = pObj; |
| 1138 m_LastObjNum = std::max(m_LastObjNum, objnum); | 1139 m_LastObjNum = std::max(m_LastObjNum, objnum); |
| 1139 return TRUE; | 1140 return TRUE; |
| 1140 } | 1141 } |
| OLD | NEW |