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

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

Issue 2477443002: Remove FX_BOOL from core (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « core/fpdfapi/parser/cpdf_data_avail.cpp ('k') | core/fpdfapi/parser/cpdf_document.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/parser/cpdf_dictionary.h" 7 #include "core/fpdfapi/parser/cpdf_dictionary.h"
8 8
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 SetFor(key, new CPDF_Number(i)); 235 SetFor(key, new CPDF_Number(i));
236 } 236 }
237 237
238 void CPDF_Dictionary::SetNameFor(const CFX_ByteString& key, 238 void CPDF_Dictionary::SetNameFor(const CFX_ByteString& key,
239 const CFX_ByteString& name) { 239 const CFX_ByteString& name) {
240 SetFor(key, new CPDF_Name(MaybeIntern(name))); 240 SetFor(key, new CPDF_Name(MaybeIntern(name)));
241 } 241 }
242 242
243 void CPDF_Dictionary::SetStringFor(const CFX_ByteString& key, 243 void CPDF_Dictionary::SetStringFor(const CFX_ByteString& key,
244 const CFX_ByteString& str) { 244 const CFX_ByteString& str) {
245 SetFor(key, new CPDF_String(MaybeIntern(str), FALSE)); 245 SetFor(key, new CPDF_String(MaybeIntern(str), false));
246 } 246 }
247 247
248 void CPDF_Dictionary::SetReferenceFor(const CFX_ByteString& key, 248 void CPDF_Dictionary::SetReferenceFor(const CFX_ByteString& key,
249 CPDF_IndirectObjectHolder* pDoc, 249 CPDF_IndirectObjectHolder* pDoc,
250 uint32_t objnum) { 250 uint32_t objnum) {
251 SetFor(key, new CPDF_Reference(pDoc, objnum)); 251 SetFor(key, new CPDF_Reference(pDoc, objnum));
252 } 252 }
253 253
254 void CPDF_Dictionary::SetNumberFor(const CFX_ByteString& key, FX_FLOAT f) { 254 void CPDF_Dictionary::SetNumberFor(const CFX_ByteString& key, FX_FLOAT f) {
255 SetFor(key, new CPDF_Number(f)); 255 SetFor(key, new CPDF_Number(f));
(...skipping 21 matching lines...) Expand all
277 pArray->AddNumber(matrix.c); 277 pArray->AddNumber(matrix.c);
278 pArray->AddNumber(matrix.d); 278 pArray->AddNumber(matrix.d);
279 pArray->AddNumber(matrix.e); 279 pArray->AddNumber(matrix.e);
280 pArray->AddNumber(matrix.f); 280 pArray->AddNumber(matrix.f);
281 SetFor(key, pArray); 281 SetFor(key, pArray);
282 } 282 }
283 283
284 CFX_ByteString CPDF_Dictionary::MaybeIntern(const CFX_ByteString& str) { 284 CFX_ByteString CPDF_Dictionary::MaybeIntern(const CFX_ByteString& str) {
285 return m_pPool ? m_pPool->Intern(str) : str; 285 return m_pPool ? m_pPool->Intern(str) : str;
286 } 286 }
OLDNEW
« no previous file with comments | « core/fpdfapi/parser/cpdf_data_avail.cpp ('k') | core/fpdfapi/parser/cpdf_document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698