Merge pull request #9800 from Chocobo1/warning

Fix compiler warnings
This commit is contained in:
Mike Tzou 2018-11-03 00:33:19 +08:00 committed by GitHub
commit 53f9d031c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));
}
}