Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 6eb3ca7d authored by Laurent Montel's avatar Laurent Montel 😁

Use isEmpty() when it's possible

parent cd7f810e
......@@ -78,7 +78,7 @@ void AbstractDisplay::reset()
void AbstractDisplay::createCardSprites()
// Only create sprites once (unless explicitly reset)
if (mCards.size() > 0) return;
if (!mCards.isEmpty()) return;
// Loop all cards
for (int cardNo = 0; cardNo < mDeck->cardNumber(); cardNo++)
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