Commit 0b977ee9 authored by Laurent Montel's avatar Laurent Montel 😁

Use isEmpty() when it's possible

parent 0ab9728e
......@@ -984,7 +984,7 @@ void MyMainView::collisions()
if(!hitlist.contains(sprite))
hitlist.append(sprite);
}
if(hitlist.count()>0)
if(!hitlist.isEmpty())
{
mine->explode();
foreach (QGraphicsItem *item, hitlist)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment