diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-11-01 09:55:26 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-11-01 10:13:30 +0100 |
commit | 72f3a54725f0a516ee5d47e3ec60f962c3373797 (patch) | |
tree | f92b46ac0ef3be77a7b7230a9368c2dd92a70f7a /imagecache.c | |
parent | 2f97c691627fa7c5c336dbf99a55374698f5f65f (diff) | |
download | skin-nopacity-72f3a54725f0a516ee5d47e3ec60f962c3373797.tar.gz skin-nopacity-72f3a54725f0a516ee5d47e3ec60f962c3373797.tar.bz2 |
Eliminate some warnings
Diffstat (limited to 'imagecache.c')
-rw-r--r-- | imagecache.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/imagecache.c b/imagecache.c index e7db262..f62873a 100644 --- a/imagecache.c +++ b/imagecache.c @@ -23,7 +23,7 @@ cImageCache::~cImageCache() { void cImageCache::CreateCache(void) { //Menu Icons std::vector<std::pair<std::string, cPoint> > menuIcons = GetMenuIcons(); - for (int i=0; i < menuIcons.size(); i++) { + for (long unsigned int i = 0; i < menuIcons.size(); i++) { std::string iconName = menuIcons[i].first; cPoint iconSize = menuIcons[i].second; bool success = LoadIcon(ctMenuIcon, iconName); @@ -32,7 +32,7 @@ void cImageCache::CreateCache(void) { } //Skin Icons std::vector<std::pair<std::string, sImgProperties> > skinIcons = GetSkinIcons(); - for (int i=0; i < skinIcons.size(); i++) { + for (long unsigned int i = 0; i < skinIcons.size(); i++) { std::string iconName = skinIcons[i].first; sImgProperties iconProps = skinIcons[i].second; bool success = LoadIcon(ctSkinIcon, iconName); @@ -144,7 +144,7 @@ cImage *cImageCache::GetLogo(eCacheType type, const cChannel *channel) { } else { bool success = LoadLogo(channel); if (success) { - if (config.GetValue("limitLogoCache") && (cache->size() >= config.GetValue("numLogosMax"))) { + if (config.GetValue("limitLogoCache") && (cache->size() >= (long unsigned int)config.GetValue("numLogosMax"))) { //logo cache is full, don't cache anymore cPoint logoSize = LogoSize(type); int width = logoSize.X(); @@ -239,7 +239,7 @@ std::vector<std::pair<std::string, cPoint> > cImageCache::GetMenuIcons(void) { mainMenuIcons.push_back("menuIcons/Plugins"); mainMenuIcons.push_back("menuIcons/Restart"); int mainMenuIconSize = geoManager->menuMainMenuIconSize; - for (int i=0; i<mainMenuIcons.size(); i++) { + for (long unsigned int i = 0; i < mainMenuIcons.size(); i++) { menuIcons.push_back(std::pair<std::string, cPoint>(mainMenuIcons[i], cPoint(mainMenuIconSize, mainMenuIconSize))); } @@ -284,7 +284,7 @@ std::vector<std::pair<std::string, sImgProperties> > cImageCache::GetSkinIcons(v props.width = geoManager->menuHeaderHeight-2; props.height = geoManager->menuHeaderHeight-2; props.preserveAspect = true; - for (int i=0; i<menuHeaderIcons.size(); i++) { + for (long unsigned int i = 0; i < menuHeaderIcons.size(); i++) { skinIcons.push_back(std::pair<std::string, sImgProperties>(menuHeaderIcons[i], props)); } |