The function parameter is hidden by a declaration of a variable with the same
From: Erik Hovland <erik@hovland.org>
name.
---
programs/mythfrontend/viewscheduled.cpp | 50 ++++++++++++++++---------------
1 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/programs/mythfrontend/viewscheduled.cpp b/programs/mythfrontend/viewscheduled.cpp
index 1287120..88e6d57 100644
a
|
b
|
void ViewScheduled::updateList(QPainter *p) |
409 | 409 | if (i + skip >= listCount) |
410 | 410 | break; |
411 | 411 | |
412 | | ProgramInfo *p = recList[skip+i]; |
| 412 | ProgramInfo *proginfo = recList[skip+i]; |
413 | 413 | |
414 | 414 | QString temp; |
415 | 415 | |
416 | | temp = (p->recstartts).toString(dateformat); |
417 | | temp += " " + (p->recstartts).toString(timeformat); |
| 416 | temp = (proginfo->recstartts).toString(dateformat); |
| 417 | temp += " " + (proginfo->recstartts).toString(timeformat); |
418 | 418 | ltype->SetItemText(i, 1, temp); |
419 | 419 | |
420 | | ltype->SetItemText(i, 2, p->ChannelText(channelFormat)); |
| 420 | ltype->SetItemText(i, 2, proginfo->ChannelText(channelFormat)); |
421 | 421 | |
422 | | temp = p->title; |
423 | | if ((p->subtitle).stripWhiteSpace().length() > 0) |
424 | | temp += " - \"" + p->subtitle + "\""; |
| 422 | temp = proginfo->title; |
| 423 | if ((proginfo->subtitle).stripWhiteSpace().length() > 0) |
| 424 | temp += " - \"" + proginfo->subtitle + "\""; |
425 | 425 | ltype->SetItemText(i, 3, temp); |
426 | 426 | |
427 | | temp = p->RecStatusChar(); |
| 427 | temp = proginfo->RecStatusChar(); |
428 | 428 | ltype->SetItemText(i, 4, temp); |
429 | 429 | |
430 | 430 | if (i + skip == listPos) |
431 | 431 | ltype->SetItemCurrent(i); |
432 | 432 | |
433 | | if (p->recstatus == rsRecording) |
| 433 | if (proginfo->recstatus == rsRecording) |
434 | 434 | ltype->EnableForcedFont(i, "recording"); |
435 | | else if (p->recstatus == rsConflict || |
436 | | p->recstatus == rsOffLine || |
437 | | p->recstatus == rsAborted) |
| 435 | else if (proginfo->recstatus == rsConflict || |
| 436 | proginfo->recstatus == rsOffLine || |
| 437 | proginfo->recstatus == rsAborted) |
438 | 438 | ltype->EnableForcedFont(i, "conflictingrecording"); |
439 | | else if (p->recstatus == rsWillRecord) |
| 439 | else if (proginfo->recstatus == rsWillRecord) |
440 | 440 | { |
441 | 441 | if ((curcard == 0 && curinput == 0) || |
442 | | p->cardid == curcard || p->inputid == curinput) |
| 442 | proginfo->cardid == curcard || proginfo->inputid == curinput) |
443 | 443 | ltype->EnableForcedFont(i, "record"); |
444 | 444 | } |
445 | | else if (p->recstatus == rsRepeat || |
446 | | p->recstatus == rsOtherShowing || |
447 | | p->recstatus == rsNeverRecord || |
448 | | (p->recstatus != rsDontRecord && |
449 | | p->recstatus <= rsEarlierShowing)) |
| 445 | else if (proginfo->recstatus == rsRepeat || |
| 446 | proginfo->recstatus == rsOtherShowing || |
| 447 | proginfo->recstatus == rsNeverRecord || |
| 448 | (proginfo->recstatus != rsDontRecord && |
| 449 | proginfo->recstatus <= rsEarlierShowing)) |
450 | 450 | ltype->EnableForcedFont(i, "disabledrecording"); |
451 | 451 | } |
452 | 452 | } |
… |
… |
void ViewScheduled::updateInfo(QPainter *p) |
572 | 572 | LayerSet *container = theme->GetSet("program_info"); |
573 | 573 | if (container) |
574 | 574 | { |
575 | | ProgramInfo *p = recList[listPos]; |
576 | | if (p) |
| 575 | ProgramInfo *proginfo = recList[listPos]; |
| 576 | if (proginfo) |
577 | 577 | { |
578 | | p->ToMap(infoMap); |
| 578 | proginfo->ToMap(infoMap); |
579 | 579 | container->ClearAllText(); |
580 | 580 | container->SetText(infoMap); |
581 | 581 | } |
… |
… |
void ViewScheduled::updateRecStatus(QPainter *p) |
608 | 608 | LayerSet *container = theme->GetSet("status_info"); |
609 | 609 | if (container) |
610 | 610 | { |
611 | | ProgramInfo *p = recList[listPos]; |
612 | | if (p) |
| 611 | ProgramInfo *proginfo = recList[listPos]; |
| 612 | if (proginfo) |
613 | 613 | { |
614 | | p->ToMap(infoMap); |
| 614 | proginfo->ToMap(infoMap); |
615 | 615 | container->ClearAllText(); |
616 | 616 | container->SetText(infoMap); |
617 | 617 | } |