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

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

Issue 1253603002: Fix FX_BOOL type mismatches. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Public API Created 5 years, 5 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
« no previous file with comments | « core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp ('k') | core/src/fpdftext/fpdf_text.cpp » ('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 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 "../../../include/fpdfapi/fpdf_serial.h" 7 #include "../../../include/fpdfapi/fpdf_serial.h"
8 CFDF_Document::CFDF_Document() : CPDF_IndirectObjects(NULL) 8 CFDF_Document::CFDF_Document() : CPDF_IndirectObjects(NULL)
9 { 9 {
10 m_pRootDict = NULL; 10 m_pRootDict = NULL;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 if (bNumber) { 55 if (bNumber) {
56 FX_DWORD objnum = FXSYS_atoi(word); 56 FX_DWORD objnum = FXSYS_atoi(word);
57 word = parser.GetNextWord(bNumber); 57 word = parser.GetNextWord(bNumber);
58 if (!bNumber) { 58 if (!bNumber) {
59 break; 59 break;
60 } 60 }
61 word = parser.GetNextWord(bNumber); 61 word = parser.GetNextWord(bNumber);
62 if (word != FX_BSTRC("obj")) { 62 if (word != FX_BSTRC("obj")) {
63 break; 63 break;
64 } 64 }
65 CPDF_Object* pObj = parser.GetObject(this, objnum, 0, FALSE); 65 CPDF_Object* pObj = parser.GetObject(this, objnum, 0, 0);
66 if (pObj == NULL) { 66 if (pObj == NULL) {
67 break; 67 break;
68 } 68 }
69 InsertIndirectObject(objnum, pObj); 69 InsertIndirectObject(objnum, pObj);
70 word = parser.GetNextWord(bNumber); 70 word = parser.GetNextWord(bNumber);
71 if (word != FX_BSTRC("endobj")) { 71 if (word != FX_BSTRC("endobj")) {
72 break; 72 break;
73 } 73 }
74 } else { 74 } else {
75 if (word != FX_BSTRC("trailer")) { 75 if (word != FX_BSTRC("trailer")) {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 result += wsFileName[1]; 180 result += wsFileName[1];
181 result += ':'; 181 result += ':';
182 result += ChangeSlash(wsFileName.c_str() + 2); 182 result += ChangeSlash(wsFileName.c_str() + 2);
183 return result; 183 return result;
184 } 184 }
185 CFX_WideString result; 185 CFX_WideString result;
186 result += '\\'; 186 result += '\\';
187 result += ChangeSlash(wsFileName.c_str()); 187 result += ChangeSlash(wsFileName.c_str());
188 return result; 188 return result;
189 } 189 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp ('k') | core/src/fpdftext/fpdf_text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698