Warning, /sdk/clazy/docs/checks/README-isempty-vs-count.md is written in an unsupported language. File is not indexed.

0001 # isempty-vs-count
0002 
0003 Finds places where you're using `Container::count()` or `Container::size()` instead of `Container::isEmpty()`.
0004 Although there's no performance benefit, `isEmpty()` provides better semantics.
0005 
0006 #### Example
0007 ```
0008 QList<int> foo;
0009 ...
0010 if (foo.count()) {}
0011 ```