Ticket #6550: speedup.patch

File speedup.patch, 829 bytes (added by Marc Alban <marcalban@…>, 15 years ago)

patch to speed up the search list screens.

  • mythtv/programs/mythfrontend/proglist.cpp

     
    13501350    ProgramInfo *s;
    13511351    vector<ProgramInfo *> sortedList;
    13521352
    1353     while (m_itemList.count())
     1353    while (!m_itemList.empty())
    13541354    {
    13551355        s = m_itemList.take(0);
    13561356        if (m_type == plTitle)
     
    14421442
    14431443    QString tmptitle;
    14441444
    1445     for (uint i = 0; i < m_itemList.count(); i++)
     1445    ProgramList::const_iterator it = m_itemList.begin();
     1446    for (; it != m_itemList.end(); ++it)
    14461447    {
    1447         ProgramInfo *pginfo = m_itemList.at(i);
     1448        ProgramInfo *pginfo = *it;
    14481449        QString state;
    14491450
    14501451        if (pginfo->recstatus == rsRecording)