Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Stop Coverity whining about mixing enum values in StatusBox::doTunerS…

…tatus()
  • Loading branch information...
commit ff462b7d0dd640a4d5d1518650d4144365e9da11 1 parent 8c8bd19
@stuartm stuartm authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 mythtv/programs/mythfrontend/statusbox.cpp
View
6 mythtv/programs/mythfrontend/statusbox.cpp
@@ -821,11 +821,11 @@ void StatusBox::doTunerStatus()
strlist << "GET_SLEEPSTATUS";
gCoreContext->SendReceiveStringList(strlist);
- state = strlist[0].toInt();
+ int sleepState = strlist[0].toInt();
- if (state == -1)
+ if (sleepState == -1)
status = tr("has an error");
- else if (state == sStatus_Undefined)
+ else if (sleepState == sStatus_Undefined)
status = tr("is unavailable");
else
status = tr("is asleep");
Please sign in to comment.
Something went wrong with that request. Please try again.