Ticket #5293: programs_mythfrontend_viewscheduled.cpp-function-parameters-hidden-by-declarations.patch

File programs_mythfrontend_viewscheduled.cpp-function-parameters-hidden-by-declarations.patch, 4.5 KB (added by Erik Hovland <erik@…>, 17 years ago)
  • programs/mythfrontend/viewscheduled.cpp

    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) 
    409409                if (i + skip >= listCount)
    410410                    break;
    411411
    412                 ProgramInfo *p = recList[skip+i];
     412                ProgramInfo *proginfo = recList[skip+i];
    413413
    414414                QString temp;
    415415
    416                 temp = (p->recstartts).toString(dateformat);
    417                 temp += " " + (p->recstartts).toString(timeformat);
     416                temp = (proginfo->recstartts).toString(dateformat);
     417                temp += " " + (proginfo->recstartts).toString(timeformat);
    418418                ltype->SetItemText(i, 1, temp);
    419419
    420                 ltype->SetItemText(i, 2, p->ChannelText(channelFormat));
     420                ltype->SetItemText(i, 2, proginfo->ChannelText(channelFormat));
    421421
    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 + "\"";
    425425                ltype->SetItemText(i, 3, temp);
    426426
    427                 temp = p->RecStatusChar();
     427                temp = proginfo->RecStatusChar();
    428428                ltype->SetItemText(i, 4, temp);
    429429
    430430                if (i + skip == listPos)
    431431                    ltype->SetItemCurrent(i);
    432432
    433                 if (p->recstatus == rsRecording)
     433                if (proginfo->recstatus == rsRecording)
    434434                    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)
    438438                    ltype->EnableForcedFont(i, "conflictingrecording");
    439                 else if (p->recstatus == rsWillRecord)
     439                else if (proginfo->recstatus == rsWillRecord)
    440440                    {
    441441                    if ((curcard == 0 && curinput == 0) ||
    442                         p->cardid == curcard || p->inputid == curinput)
     442                        proginfo->cardid == curcard || proginfo->inputid == curinput)
    443443                        ltype->EnableForcedFont(i, "record");
    444444                    }
    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))
    450450                    ltype->EnableForcedFont(i, "disabledrecording");
    451451            }
    452452        }
    void ViewScheduled::updateInfo(QPainter *p) 
    572572    LayerSet *container = theme->GetSet("program_info");
    573573    if (container)
    574574    {
    575         ProgramInfo *p = recList[listPos];
    576         if (p)
     575        ProgramInfo *proginfo = recList[listPos];
     576        if (proginfo)
    577577        {
    578             p->ToMap(infoMap);
     578            proginfo->ToMap(infoMap);
    579579            container->ClearAllText();
    580580            container->SetText(infoMap);
    581581        }
    void ViewScheduled::updateRecStatus(QPainter *p) 
    608608    LayerSet *container = theme->GetSet("status_info");
    609609    if (container)
    610610    {
    611         ProgramInfo *p = recList[listPos];
    612         if (p)
     611        ProgramInfo *proginfo = recList[listPos];
     612        if (proginfo)
    613613        {
    614             p->ToMap(infoMap);
     614            proginfo->ToMap(infoMap);
    615615            container->ClearAllText();
    616616            container->SetText(infoMap);
    617617        }