mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07: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:
parent
c59d2575c8
commit
44e4b5d238
2 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ SearchEngine::SearchEngine()
|
||||||
|
|
||||||
SearchEngine::~SearchEngine()
|
SearchEngine::~SearchEngine()
|
||||||
{
|
{
|
||||||
qDeleteAll(m_plugins.values());
|
qDeleteAll(m_plugins);
|
||||||
cancelSearch();
|
cancelSearch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -234,7 +234,7 @@ void TrackerList::moveSelectionDown()
|
||||||
|
|
||||||
void TrackerList::clear()
|
void TrackerList::clear()
|
||||||
{
|
{
|
||||||
qDeleteAll(m_trackerItems.values());
|
qDeleteAll(m_trackerItems);
|
||||||
m_trackerItems.clear();
|
m_trackerItems.clear();
|
||||||
m_DHTItem->setText(COL_STATUS, "");
|
m_DHTItem->setText(COL_STATUS, "");
|
||||||
m_DHTItem->setText(COL_SEEDS, "");
|
m_DHTItem->setText(COL_SEEDS, "");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue