mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 20:58:07 -06:00
Don't use qDeleteAll() on temporaries
qDeleteAll() is being used on an unnecessary temporary container created by QHash::values(). Using qDeleteAll(mycontainer) instead.
This commit is contained in:
@@ -234,7 +234,7 @@ void TrackerList::moveSelectionDown()
|
||||
|
||||
void TrackerList::clear()
|
||||
{
|
||||
qDeleteAll(m_trackerItems.values());
|
||||
qDeleteAll(m_trackerItems);
|
||||
m_trackerItems.clear();
|
||||
m_DHTItem->setText(COL_STATUS, "");
|
||||
m_DHTItem->setText(COL_SEEDS, "");
|
||||
|
||||
Reference in New Issue
Block a user