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

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

Issue 1805603002: core/include/fdpfapi cleanup Part I. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master 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 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/include/fpdfapi/cpdf_dictionary.h" 7 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"
8 8
9 #include "core/include/fpdfapi/cpdf_array.h" 9 #include "core/fpdfapi/fpdf_parser/cpdf_boolean.h"
10 #include "core/include/fpdfapi/cpdf_boolean.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
11 #include "core/include/fpdfapi/cpdf_name.h" 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_name.h"
12 #include "core/include/fpdfapi/cpdf_number.h" 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_number.h"
13 #include "core/include/fpdfapi/cpdf_reference.h" 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_reference.h"
14 #include "core/include/fpdfapi/cpdf_stream.h" 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h"
15 #include "core/include/fpdfapi/cpdf_string.h" 15 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h"
16 #include "third_party/base/stl_util.h" 16 #include "third_party/base/stl_util.h"
17 17
18 CPDF_Dictionary::CPDF_Dictionary() {} 18 CPDF_Dictionary::CPDF_Dictionary() {}
19 19
20 CPDF_Dictionary::~CPDF_Dictionary() { 20 CPDF_Dictionary::~CPDF_Dictionary() {
21 for (const auto& it : m_Map) 21 for (const auto& it : m_Map)
22 it.second->Release(); 22 it.second->Release();
23 } 23 }
24 24
25 CPDF_Object::Type CPDF_Dictionary::GetType() const { 25 CPDF_Object::Type CPDF_Dictionary::GetType() const {
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 const CFX_Matrix& matrix) { 262 const CFX_Matrix& matrix) {
263 CPDF_Array* pArray = new CPDF_Array; 263 CPDF_Array* pArray = new CPDF_Array;
264 pArray->AddNumber(matrix.a); 264 pArray->AddNumber(matrix.a);
265 pArray->AddNumber(matrix.b); 265 pArray->AddNumber(matrix.b);
266 pArray->AddNumber(matrix.c); 266 pArray->AddNumber(matrix.c);
267 pArray->AddNumber(matrix.d); 267 pArray->AddNumber(matrix.d);
268 pArray->AddNumber(matrix.e); 268 pArray->AddNumber(matrix.e);
269 pArray->AddNumber(matrix.f); 269 pArray->AddNumber(matrix.f);
270 SetAt(key, pArray); 270 SetAt(key, pArray);
271 } 271 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp ('k') | core/fpdfapi/fpdf_parser/cpdf_document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698