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

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