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

Side by Side Diff: core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp

Issue 1773103003: Split off CPDF_Parser and CPDF_SimpleParser into .h/.cpp files (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Then address C#3. Created 4 years, 9 months 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
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 "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
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 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_encrypt.cpp ('k') | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698