diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-03-23 13:43:37 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-03-23 15:42:41 +0100 |
commit | 10f6d90f16835d0c534dca69fa8c32be37b53b8d (patch) | |
tree | 86ba9d454c2f41974f5da3befa4f37b91b40256d /recmenus.c | |
parent | 168973331cae4a6709d36fbedd590fa79e79aaf1 (diff) | |
download | vdr-plugin-tvguide-10f6d90f16835d0c534dca69fa8c32be37b53b8d.tar.gz vdr-plugin-tvguide-10f6d90f16835d0c534dca69fa8c32be37b53b8d.tar.bz2 |
Eliminate some warnings
Diffstat (limited to 'recmenus.c')
-rw-r--r-- | recmenus.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -85,7 +85,7 @@ cRecMenuItem *cRecMenuAskFolder::GetMenuItem(int number) { if (number == 0) { cRecMenuItem *result = new cRecMenuItemButton(tr("root video folder"), rmsInstantRecord, false, false, true); return result; - } else if ((number > 0) && (number < folders.size()+1)) { + } else if ((number > 0) && (number < (int)folders.size() + 1)) { cRecMenuItem *result = new cRecMenuItemButton(folders[number-1].c_str(), rmsInstantRecord, false, false, true); return result; } @@ -99,7 +99,7 @@ int cRecMenuAskFolder::GetTotalNumMenuItems(void) { std::string cRecMenuAskFolder::GetFolder(void) { std::string folder = ""; int folderActive = GetActive(); - if (folderActive > 0 && folderActive < folders.size() + 1) + if (folderActive > 0 && folderActive < (int)folders.size() + 1) folder = folders[folderActive - 1]; return folder; } @@ -275,7 +275,7 @@ cRecMenuTimerConflict::cRecMenuTimerConflict(cTVGuideTimerConflict *conflict) { } cRecMenuItem *cRecMenuTimerConflict::GetMenuItem(int number) { - if ((number >= 0) && (number < conflict->timerIDs.size())) { + if ((number >= 0) && (number < (int)conflict->timerIDs.size())) { #if VDRVERSNUM >= 20301 LOCK_TIMERS_READ; const cTimer *timer = Timers->Get(conflict->timerIDs[number]); @@ -677,7 +677,7 @@ int cRecMenuSearchTimerTemplates::GetTotalNumMenuItems(void) { TVGuideEPGSearchTemplate cRecMenuSearchTimerTemplates::GetTemplate(void) { TVGuideEPGSearchTemplate templ; int tmplActive = GetActive() - 1; - if (tmplActive >= 0 && tmplActive < templates.size()) + if (tmplActive >= 0 && tmplActive < (int)templates.size()) templ = templates[tmplActive]; return templ; } |