fixed some compiler warnings

This commit is contained in:
louis
2015-04-02 11:57:19 +02:00
parent 70ce62e353
commit 6d22edc2d8
8 changed files with 11 additions and 12 deletions

View File

@@ -156,7 +156,7 @@ vector<string>& splitstring::split(char delim, int rep) {
string work = data();
string buf = "";
int i = 0;
while (i < work.length()) {
while (i < (int)work.length()) {
if (work[i] != delim)
buf += work[i];
else if (rep == 1) {

View File

@@ -91,7 +91,7 @@ cImage *cImageCache::GetLogo(string channelID, int width, int height) {
return NULL;
bool success = LoadLogo(channel);
if (success) {
if (config.limitLogoCache && (channelLogoCache.size() >= config.numLogosMax)) {
if (config.limitLogoCache && ((int)channelLogoCache.size() >= config.numLogosMax)) {
//logo cache is full, don't cache anymore
if (tempStaticLogo) {
delete tempStaticLogo;
@@ -245,6 +245,8 @@ string cImageCache::GetIconName(string label, eMenuCategory cat) {
return "standardicons/Miscellaneous";
case mcCommand:
return "standardicons/Commands";
default:
break;
}
//check for standard menu entries
for (int i=0; i<16; i++) {