Improve warnings in `isempty-vs-count` check
This changes the isempty-vs-count
check for two cases:
- The
count(key)
method of aQMap
,QHash
,QMultiHash
orQMultiMap
is called. In this casecontains(key)
should be used instead ofisEmpty()
. - The
count(key, value)
method of aQMultiMap
/QMultiMap
is called. In this casecontains(key, value)
should be used instead ofisEmpty()
.
Note: I was not able to test this locally, due to #10.
Edited by Jan Holthuis