From 4d5bfc7c68db5776711b21fbcef70d02f22b5789 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Wed, 4 Apr 2012 13:05:15 +0200 Subject: Added cppcheck 1.53 suggestions --- setup.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'setup.cpp') diff --git a/setup.cpp b/setup.cpp index ca0fe44..6c2b6db 100644 --- a/setup.cpp +++ b/setup.cpp @@ -247,11 +247,11 @@ eOSState cMenuSetupXmltv2vdr::ProcessKey(eKeys Key) switch (state) { case osContinue: - if ((Key==kLeft) || (Key==kRight) || (Key==kLeft|k_Repeat) || (Key==kRight|k_Repeat)) + if ((Key==kLeft) || (Key==kRight) || (Key==(kLeft|k_Repeat)) || (Key==(kRight|k_Repeat))) { if ((epEntry) && (Current()==epEntry)) Output(); } - if ((Key==kDown) || (Key==kUp) || (Key==kDown|k_Repeat) || (Key==kUp|k_Repeat)) + if ((Key==kDown) || (Key==kUp) || (Key==(kDown|k_Repeat)) || (Key==(kUp|k_Repeat))) { if ((Current()>=sourcesBegin) && (Current()<=sourcesEnd)) { @@ -789,7 +789,7 @@ eOSState cMenuSetupXmltv2vdrChannelSource::ProcessKey(eKeys Key) switch (state) { case osContinue: - if ((Key==kLeft) || (Key==kRight) || (Key==kLeft|k_Repeat) || (Key==kRight|k_Repeat)) + if ((Key==kLeft) || (Key==kRight) || (Key==(kLeft|k_Repeat)) || (Key==(kRight|k_Repeat))) { if (Current()==updateEntry) output(); } -- cgit v1.2.3