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

Side by Side Diff: core/src/fpdfapi/fpdf_page/fpdf_page_parser.cpp

Issue 1356373003: Fix a bunch of sign mismatch warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: fix a couple more trivial comparison warnings... maybe they got lost in the merge Created 5 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 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_page.h" 7 #include "../../../include/fpdfapi/fpdf_page.h"
8 #include "../../../include/fpdfapi/fpdf_module.h" 8 #include "../../../include/fpdfapi/fpdf_module.h"
9 #include "../../../include/fpdfapi/fpdf_serial.h" 9 #include "../../../include/fpdfapi/fpdf_serial.h"
10 #include "pageint.h" 10 #include "pageint.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 m_BBox = *pBBox; 64 m_BBox = *pBBox;
65 } 65 }
66 if (pStates) { 66 if (pStates) {
67 m_pCurStates->Copy(*pStates); 67 m_pCurStates->Copy(*pStates);
68 } else { 68 } else {
69 m_pCurStates->m_GeneralState.New(); 69 m_pCurStates->m_GeneralState.New();
70 m_pCurStates->m_GraphState.New(); 70 m_pCurStates->m_GraphState.New();
71 m_pCurStates->m_TextState.New(); 71 m_pCurStates->m_TextState.New();
72 m_pCurStates->m_ColorState.New(); 72 m_pCurStates->m_ColorState.New();
73 } 73 }
74 for (int i = 0; i < FX_ArraySize(m_Type3Data); ++i) { 74 for (size_t i = 0; i < FX_ArraySize(m_Type3Data); ++i) {
75 m_Type3Data[i] = 0.0; 75 m_Type3Data[i] = 0.0;
76 } 76 }
77 } 77 }
78 78
79 CPDF_StreamContentParser::~CPDF_StreamContentParser() { 79 CPDF_StreamContentParser::~CPDF_StreamContentParser() {
80 ClearAllParams(); 80 ClearAllParams();
81 for (int i = 0; i < m_StateStack.GetSize(); ++i) { 81 for (int i = 0; i < m_StateStack.GetSize(); ++i) {
82 delete (CPDF_AllStates*)m_StateStack[i]; 82 delete (CPDF_AllStates*)m_StateStack[i];
83 } 83 }
84 FX_Free(m_pPathPoints); 84 FX_Free(m_pPathPoints);
(...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 buf.AppendChar((char)code); 1587 buf.AppendChar((char)code);
1588 } 1588 }
1589 bFirst = !bFirst; 1589 bFirst = !bFirst;
1590 } 1590 }
1591 } 1591 }
1592 if (!bFirst) { 1592 if (!bFirst) {
1593 buf.AppendChar((char)code); 1593 buf.AppendChar((char)code);
1594 } 1594 }
1595 return buf.GetByteString(); 1595 return buf.GetByteString();
1596 } 1596 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp ('k') | core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698