mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-27 13:44:15 +01:00
-removed those warning so nobody gets annoyed by them
This commit is contained in:
parent
85da1d31d9
commit
07bcbe3c1f
@ -233,7 +233,7 @@ void Channels::Search(u32 channelType, string lang)
|
||||
|
||||
wchar_t * Channels::GetName(int index)
|
||||
{
|
||||
if (index < 0 || index > Count() - 1)
|
||||
if (index < 0 || index > (int)Count() - 1)
|
||||
{
|
||||
return (wchar_t *) "";
|
||||
}
|
||||
@ -247,18 +247,18 @@ u32 Channels::Count()
|
||||
|
||||
char * Channels::GetId(int index)
|
||||
{
|
||||
if (index < 0 || index > Count() - 1) return (char *) "";
|
||||
if (index < 0 || index > (int)Count() - 1) return (char *) "";
|
||||
return channels.at(index).id;
|
||||
}
|
||||
|
||||
u64 Channels::GetTitle(int index)
|
||||
{
|
||||
if (index < 0 || index > Count() - 1) return 0;
|
||||
if (index < 0 || index > (int)Count() - 1) return 0;
|
||||
return channels.at(index).title;
|
||||
}
|
||||
|
||||
Channel * Channels::GetChannel(int index)
|
||||
{
|
||||
if (index < 0 || index > Count() - 1) return NULL;
|
||||
if (index < 0 || index > (int)Count() - 1) return NULL;
|
||||
return &channels.at(index);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user