use built-in method QString::isEmpty()
authorunc0rr
Thu, 02 Sep 2010 21:49:36 +0400
changeset 3812 ce18fd3ff02d
parent 3811 967363197f01
child 3813 9c32b0e0b6c9
child 3814 7af568bc0710
use built-in method QString::isEmpty()
QTfrontend/team.cpp
--- a/QTfrontend/team.cpp	Thu Sep 02 19:21:41 2010 +0200
+++ b/QTfrontend/team.cpp	Thu Sep 02 21:49:36 2010 +0400
@@ -74,7 +74,7 @@
         Hedgehogs[i].Hat=strLst[i * 2 + 8];
 // Somehow claymore managed an empty hat.  Until we figure out how, this should avoid a repeat
 // Checking net teams is probably pointless, but can't hurt.
-        if (Hedgehogs[i].Hat.length() == 0) Hedgehogs[i].Hat = "NoHat";
+        if (Hedgehogs[i].Hat.isEmpty() == 0) Hedgehogs[i].Hat = "NoHat";
     }
     Rounds = 0;
     Wins = 0;