Bug 934666: Use size_t (instead of int) for iteration up to unsigned value in nsUXThemeData.cpp. r=jimm

This commit is contained in:
Daniel Holbert 2013-11-04 16:12:31 -08:00
parent 2cee6f0657
commit efe1e3c065

View File

@ -307,7 +307,7 @@ nsUXThemeData::UpdateNativeThemeInfo()
themeName = themeName ? themeName + 1 : themeFileName;
WindowsTheme theme = WINTHEME_UNRECOGNIZED;
for (int i = 0; i < ArrayLength(knownThemes); ++i) {
for (size_t i = 0; i < ArrayLength(knownThemes); ++i) {
if (!lstrcmpiW(themeName, knownThemes[i].name)) {
theme = (WindowsTheme)knownThemes[i].type;
break;
@ -342,7 +342,7 @@ nsUXThemeData::UpdateNativeThemeInfo()
// calculate the luna color scheme
WindowsThemeColor color = WINTHEMECOLOR_UNRECOGNIZED;
for (int i = 0; i < ArrayLength(knownColors); ++i) {
for (size_t i = 0; i < ArrayLength(knownColors); ++i) {
if (!lstrcmpiW(themeColor, knownColors[i].name)) {
color = (WindowsThemeColor)knownColors[i].type;
break;