mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 03:39:39 +03:00
Don't use deprecated QSet::iterator::operator+(int)
This commit is contained in:
parent
c239568658
commit
9c330812cc
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ namespace Algorithm
|
|||
{
|
||||
auto it = dict.begin();
|
||||
while (it != dict.end())
|
||||
it = (p(it.key(), it.value()) ? dict.erase(it) : (it + 1));
|
||||
it = (p(it.key(), it.value()) ? dict.erase(it) : ++it);
|
||||
}
|
||||
|
||||
// To be used with set types, such as QSet, std::set
|
||||
|
@ -64,6 +64,6 @@ namespace Algorithm
|
|||
{
|
||||
auto it = set.begin();
|
||||
while (it != set.end())
|
||||
it = (p(*it) ? set.erase(it) : (it + 1));
|
||||
it = (p(*it) ? set.erase(it) : ++it);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue