Skip to content

Commit

Permalink
Fix another two instances of dead code in MythNetVision. Coverity 703…
Browse files Browse the repository at this point in the history
…656,703657
  • Loading branch information
stuartm committed Jun 3, 2013
1 parent 3ffed8d commit 96c93d4
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions mythplugins/mythnetvision/mythnetvision/netsearch.cpp
Expand Up @@ -290,14 +290,12 @@ void NetSearch::fillGrabberButtonList()
new MythUIButtonListItem(m_siteList, (*i)->GetTitle());
if (item)
{
item->SetText((*i)->GetTitle(), "title");
item->SetData((*i)->GetCommandline());
QString thumb = QString("%1mythnetvision/icons/%2").arg(GetShareDir())
.arg((*i)->GetImage());
item->SetImage(thumb);
item->SetText((*i)->GetTitle(), "title");
item->SetData((*i)->GetCommandline());
QString thumb = QString("%1mythnetvision/icons/%2").arg(GetShareDir())
.arg((*i)->GetImage());
item->SetImage(thumb);
}
else
delete item;
}
}

Expand Down Expand Up @@ -502,8 +500,6 @@ void NetSearch::populateResultList(ResultItem::resultList list)
}
}
}
else
delete item;
}
}

Expand Down

0 comments on commit 96c93d4

Please sign in to comment.