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

Side by Side Diff: core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp

Issue 2383543002: Move core/fpdfapi/fpdf_parser/include to core/fpdfapi/fpdf_parser (Closed)
Patch Set: Created 4 years, 2 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 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/include/cpdf_indirect_object_holder.h" 7 #include "core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.h"
8 8
9 #include "core/fpdfapi/fpdf_parser/include/cpdf_object.h" 9 #include "core/fpdfapi/fpdf_parser/cpdf_object.h"
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_parser.h" 10 #include "core/fpdfapi/fpdf_parser/cpdf_parser.h"
11 11
12 CPDF_IndirectObjectHolder::CPDF_IndirectObjectHolder() : m_LastObjNum(0) {} 12 CPDF_IndirectObjectHolder::CPDF_IndirectObjectHolder() : m_LastObjNum(0) {}
13 13
14 CPDF_IndirectObjectHolder::~CPDF_IndirectObjectHolder() {} 14 CPDF_IndirectObjectHolder::~CPDF_IndirectObjectHolder() {}
15 15
16 CPDF_Object* CPDF_IndirectObjectHolder::GetIndirectObject( 16 CPDF_Object* CPDF_IndirectObjectHolder::GetIndirectObject(
17 uint32_t objnum) const { 17 uint32_t objnum) const {
18 auto it = m_IndirectObjs.find(objnum); 18 auto it = m_IndirectObjs.find(objnum);
19 return it != m_IndirectObjs.end() ? it->second.get() : nullptr; 19 return it != m_IndirectObjs.end() ? it->second.get() : nullptr;
20 } 20 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 return true; 70 return true;
71 } 71 }
72 72
73 void CPDF_IndirectObjectHolder::ReleaseIndirectObject(uint32_t objnum) { 73 void CPDF_IndirectObjectHolder::ReleaseIndirectObject(uint32_t objnum) {
74 CPDF_Object* pObj = GetIndirectObject(objnum); 74 CPDF_Object* pObj = GetIndirectObject(objnum);
75 if (!pObj || pObj->GetObjNum() == CPDF_Object::kInvalidObjNum) 75 if (!pObj || pObj->GetObjNum() == CPDF_Object::kInvalidObjNum)
76 return; 76 return;
77 77
78 m_IndirectObjs.erase(objnum); 78 m_IndirectObjs.erase(objnum);
79 } 79 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.h ('k') | core/fpdfapi/fpdf_parser/cpdf_name.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698