diff options
author | anbr <vdr07@deltab.de> | 2012-03-03 20:28:58 +0100 |
---|---|---|
committer | anbr <vdr07@deltab.de> | 2012-03-03 20:28:58 +0100 |
commit | 5b33a1463869f3c457df1a4ae64022983eaefee4 (patch) | |
tree | 40556df745f6812d5a3366f63758394cdf16bbef | |
parent | ab66bd249f4b59f15006e0185b0b7a0f0a6cc68b (diff) | |
download | vdr-plugin-dvdswitch-5b33a1463869f3c457df1a4ae64022983eaefee4.tar.gz vdr-plugin-dvdswitch-5b33a1463869f3c457df1a4ae64022983eaefee4.tar.bz2 |
Fix warning: case value ‘x’ not in enumerated type ‘eKeys’ [-Wswitch]
-rw-r--r-- | commands.c | 12 | ||||
-rw-r--r-- | menu.c | 12 | ||||
-rw-r--r-- | setup.c | 4 |
3 files changed, 6 insertions, 22 deletions
@@ -243,12 +243,10 @@ eOSState cCMDDir::ProcessKey(eKeys Key) { case csNone: mItem = (cMainMenuItem*)Get(Current()); - switch(Key) + switch(Key & ~k_Repeat) { case kUp: - case kUp|k_Repeat: case kDown: - case kDown|k_Repeat: cOsdMenu::ProcessKey(Key); SetHelp(); mItem = (cMainMenuItem*)Get(Current()); @@ -580,12 +578,10 @@ eOSState cCMDMove::ProcessKey(eKeys Key) cDirHandling *DirHand = NULL; cFileMoveThread *move = NULL; - switch(Key) + switch(Key & ~k_Repeat) { case kUp: - case kUp|k_Repeat: case kDown: - case kDown|k_Repeat: cOsdMenu::ProcessKey(Key); SetHelp(); mItem = (cMainMenuItem*)Get(Current()); @@ -795,12 +791,10 @@ eOSState cCMDImageRead::ProcessKey(eKeys Key) { if(!HasSubMenu()) { - switch(Key) + switch(Key & ~k_Repeat) { case kUp: - case kUp|k_Repeat: case kDown: - case kDown|k_Repeat: cOsdMenu::ProcessKey(Key); SetHelp(); return osContinue; @@ -556,16 +556,12 @@ eOSState cMainMenu::ProcessKey(eKeys Key) } break; default: - switch(Key) + switch(Key & ~k_Repeat) { case kUp: - case kUp|k_Repeat: case kDown: - case kDown|k_Repeat: case kRight: - case kRight|k_Repeat: case kLeft: - case kLeft|k_Repeat: return MenuMove(Key); break; case k1: @@ -602,12 +598,10 @@ eOSState cMainMenu::MenuMove(eKeys Key) if(DVDSwitchSetup.DisplayMode == 1) { - switch(Key) + switch(Key & ~k_Repeat) { case kDown: - case kDown|k_Repeat: case kUp: - case kUp|k_Repeat: state = cOsdMenu::ProcessKey(Key); if(Count() && Current() == FirstSelectable) @@ -619,7 +613,6 @@ eOSState cMainMenu::MenuMove(eKeys Key) } break; case kLeft: - case kLeft|k_Repeat: if(Count() && DVDSwitchSetup.JumpCatByKey) { @@ -685,7 +678,6 @@ eOSState cMainMenu::MenuMove(eKeys Key) } break; case kRight: - case kRight|k_Repeat: if(Count() && DVDSwitchSetup.JumpCatByKey) { @@ -340,7 +340,7 @@ eOSState cMenuSetupDVDSwitch::ProcessKey(eKeys Key) { const char *ItemText = Get(Current())->Text(); - switch(Key) + switch(Key & ~k_Repeat) { case kRight: case kLeft: @@ -406,9 +406,7 @@ eOSState cMenuSetupDVDSwitch::ProcessKey(eKeys Key) } break; case kUp: - case kUp|k_Repeat: case kDown: - case kDown|k_Repeat: state = cMenuSetupPage::ProcessKey(Key); ItemText = Get(Current())->Text(); |