timerlist: use CListHelpers

remove duplicated code and use CListHelpers::UpDownKey().
Some variable types had to be changed to avoid typecasts, as
a result (int) casts to foo.size() had to be added :-)
This commit is contained in:
Stefan Seyfried
2016-01-16 18:18:50 +01:00
parent 663c7e3cfc
commit 8f95f259c1
3 changed files with 19 additions and 52 deletions

View File

@@ -24,6 +24,7 @@
#include <global.h>
#include <gui/bouquetlist.h>
#include <libupnpclient/upnpclient.h>
#include <timerdclient/timerdtypes.h>
static int upDownKey(int size, neutrino_msg_t msg, int lines, int sel)
{
@@ -83,3 +84,4 @@ updown_t(std::vector<CZapitBouquet*>);
updown_t(std::vector<CZapitChannel*>);
updown_t(std::vector<CChannelEvent>);
updown_t(std::vector<CUPnPDevice>);
updown_t(std::vector<CTimerd::responseGetTimer>);