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

Side by Side Diff: core/src/fxge/ge/fx_ge_linux.cpp

Issue 1356373003: Fix a bunch of sign mismatch warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: 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/fxge/fx_ge.h" 7 #include "../../../include/fxge/fx_ge.h"
8 #include "../agg/include/fx_agg_driver.h" 8 #include "../agg/include/fx_agg_driver.h"
9 #include "text_int.h" 9 #include "text_int.h"
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 break; 113 break;
114 } 114 }
115 for (int32_t i = 0; i < LINUX_GPNAMESIZE; i++) { 115 for (int32_t i = 0; i < LINUX_GPNAMESIZE; i++) {
116 auto it = m_FontList.find(LinuxGpFontList[index].NameArr[i]); 116 auto it = m_FontList.find(LinuxGpFontList[index].NameArr[i]);
117 if (it != m_FontList.end()) { 117 if (it != m_FontList.end()) {
118 return it->second; 118 return it->second;
119 } 119 }
120 } 120 }
121 } break; 121 } break;
122 case FXFONT_GB2312_CHARSET: { 122 case FXFONT_GB2312_CHARSET: {
123 for (int32_t i = 0; i < FX_ArraySize(g_LinuxGbFontList); ++i) { 123 for (size_t i = 0; i < FX_ArraySize(g_LinuxGbFontList); ++i) {
124 auto it = m_FontList.find(g_LinuxGbFontList[i]); 124 auto it = m_FontList.find(g_LinuxGbFontList[i]);
125 if (it != m_FontList.end()) { 125 if (it != m_FontList.end()) {
126 return it->second; 126 return it->second;
127 } 127 }
128 } 128 }
129 } break; 129 } break;
130 case FXFONT_CHINESEBIG5_CHARSET: { 130 case FXFONT_CHINESEBIG5_CHARSET: {
131 for (int32_t i = 0; i < FX_ArraySize(g_LinuxB5FontList); ++i) { 131 for (size_t i = 0; i < FX_ArraySize(g_LinuxB5FontList); ++i) {
132 auto it = m_FontList.find(g_LinuxB5FontList[i]); 132 auto it = m_FontList.find(g_LinuxB5FontList[i]);
133 if (it != m_FontList.end()) { 133 if (it != m_FontList.end()) {
134 return it->second; 134 return it->second;
135 } 135 }
136 } 136 }
137 } break; 137 } break;
138 case FXFONT_HANGEUL_CHARSET: { 138 case FXFONT_HANGEUL_CHARSET: {
139 for (int32_t i = 0; i < FX_ArraySize(g_LinuxHGFontList); ++i) { 139 for (size_t i = 0; i < FX_ArraySize(g_LinuxHGFontList); ++i) {
140 auto it = m_FontList.find(g_LinuxHGFontList[i]); 140 auto it = m_FontList.find(g_LinuxHGFontList[i]);
141 if (it != m_FontList.end()) { 141 if (it != m_FontList.end()) {
142 return it->second; 142 return it->second;
143 } 143 }
144 } 144 }
145 } break; 145 } break;
146 default: 146 default:
147 bCJK = FALSE; 147 bCJK = FALSE;
148 break; 148 break;
149 } 149 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 AddPath(*pPath); 244 AddPath(*pPath);
245 } 245 }
246 return TRUE; 246 return TRUE;
247 } 247 }
248 void CFX_GEModule::InitPlatform() { 248 void CFX_GEModule::InitPlatform() {
249 m_pFontMgr->SetSystemFontInfo( 249 m_pFontMgr->SetSystemFontInfo(
250 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths)); 250 IFX_SystemFontInfo::CreateDefault(m_pUserFontPaths));
251 } 251 }
252 void CFX_GEModule::DestroyPlatform() {} 252 void CFX_GEModule::DestroyPlatform() {}
253 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ 253 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698