Browse Source

Merge pull request #8398 from luis-pereira/no-qdeleteall-on-temporaries

Don't use qDeleteAll() on temporaries
adaptive-webui-19844
Vladimir Golovnev 7 years ago committed by GitHub
parent
commit
226b0d4194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/searchengine.cpp
  2. 2
      src/gui/properties/trackerlist.cpp

2
src/base/searchengine.cpp

@ -84,7 +84,7 @@ SearchEngine::SearchEngine() @@ -84,7 +84,7 @@ SearchEngine::SearchEngine()
SearchEngine::~SearchEngine()
{
qDeleteAll(m_plugins.values());
qDeleteAll(m_plugins);
cancelSearch();
}

2
src/gui/properties/trackerlist.cpp

@ -234,7 +234,7 @@ void TrackerList::moveSelectionDown() @@ -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, "");

Loading…
Cancel
Save