Ticket #4849: programs_mythfrontend_channelrecpriority.cpp-remove-unused-chanInfo-assignment.patch

File programs_mythfrontend_channelrecpriority.cpp-remove-unused-chanInfo-assignment.patch, 930 bytes (added by Erik Hovland <erik@…>, 18 years ago)

removes useless chanInfo assignment

  • programs/mythfrontend/channelrecpriority.cpp

    Most of the time chanInfo is used to do something in channelrecpriority.
    
    From: Erik Hovland <erik@hovland.org>
    
    But this code does not. Since it was likely copied from somewhere else
    this oversight seems to have crept in. This patch removes that
    extra call.
    ---
    
     programs/mythfrontend/channelrecpriority.cpp |    2 --
     1 files changed, 0 insertions(+), 2 deletions(-)
    
    diff --git a/programs/mythfrontend/channelrecpriority.cpp b/programs/mythfrontend/channelrecpriority.cpp
    index e56d053..5ed8906 100644
    a b void ChannelRecPriority::SortList()  
    548548        // find recPriorityInfo[i] in cdCopy
    549549        for (j = 0, pit = cdCopy.begin(); j !=recPriorityInfo->cnt; j++, ++pit);
    550550
    551         chanInfo = &(pit.data());
    552 
    553551        // put back into channelData
    554552        channelData[QString::number(999-i)] = pit.data();
    555553