OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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/fpdfapi/fpdf_parser/cpdf_object.h" | 7 #include "core/fpdfapi/fpdf_parser/cpdf_object.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 return CloneObjectNonCyclic(true); | 31 return CloneObjectNonCyclic(true); |
32 } | 32 } |
33 | 33 |
34 CPDF_Object* CPDF_Object::CloneNonCyclic( | 34 CPDF_Object* CPDF_Object::CloneNonCyclic( |
35 bool bDirect, | 35 bool bDirect, |
36 std::set<const CPDF_Object*>* pVisited) const { | 36 std::set<const CPDF_Object*>* pVisited) const { |
37 return Clone(); | 37 return Clone(); |
38 } | 38 } |
39 | 39 |
40 void CPDF_Object::Release() { | 40 void CPDF_Object::Release() { |
41 if (m_ObjNum) | 41 CHECK(!m_ObjNum); |
42 return; | |
43 | |
44 delete this; | 42 delete this; |
45 } | 43 } |
46 | 44 |
47 CFX_ByteString CPDF_Object::GetString() const { | 45 CFX_ByteString CPDF_Object::GetString() const { |
48 return CFX_ByteString(); | 46 return CFX_ByteString(); |
49 } | 47 } |
50 | 48 |
51 CFX_WideString CPDF_Object::GetUnicodeText() const { | 49 CFX_WideString CPDF_Object::GetUnicodeText() const { |
52 return CFX_WideString(); | 50 return CFX_WideString(); |
53 } | 51 } |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 return nullptr; | 154 return nullptr; |
157 } | 155 } |
158 | 156 |
159 CPDF_String* CPDF_Object::AsString() { | 157 CPDF_String* CPDF_Object::AsString() { |
160 return nullptr; | 158 return nullptr; |
161 } | 159 } |
162 | 160 |
163 const CPDF_String* CPDF_Object::AsString() const { | 161 const CPDF_String* CPDF_Object::AsString() const { |
164 return nullptr; | 162 return nullptr; |
165 } | 163 } |
OLD | NEW |