mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-23 03:06:14 +03:00
Fix MSVC warning C4804
Full message of the warning: webui\api\searchcontroller.cpp(54): warning C4804: '>': unsafe use of type 'bool' in operation
This commit is contained in:
parent
dea6b3d7e0
commit
209e6a889a
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ namespace
|
|||
void removeActiveSearch(ISession *session, const int id)
|
||||
{
|
||||
auto activeSearches = session->getData<QSet<int>>(ACTIVE_SEARCHES);
|
||||
if (activeSearches.remove(id) > 0)
|
||||
if (activeSearches.remove(id))
|
||||
session->setData(ACTIVE_SEARCHES, QVariant::fromValue(activeSearches));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue