mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Improve removeIf() to support set types
We can now replace QMutable*Iterator by removeIf() which usage is more consistent with other algorithm functions.
This commit is contained in:
@@ -754,7 +754,7 @@ bool Session::removeCategory(const QString &name)
|
||||
if (isSubcategoriesEnabled()) {
|
||||
// remove subcategories
|
||||
const QString test = name + '/';
|
||||
Dict::removeIf(m_categories, [this, &test, &result](const QString &category, const QString &)
|
||||
Algorithm::removeIf(m_categories, [this, &test, &result](const QString &category, const QString &)
|
||||
{
|
||||
if (category.startsWith(test)) {
|
||||
result = true;
|
||||
|
||||
Reference in New Issue
Block a user