QTfrontend/ui/widget/teamselect.cpp
changeset 7835 a84936d1618a
parent 7523 0790527b4e00
child 8129 98e4a60da2ca
--- a/QTfrontend/ui/widget/teamselect.cpp	Sat Oct 27 00:53:23 2012 +0400
+++ b/QTfrontend/ui/widget/teamselect.cpp	Sat Oct 27 01:16:35 2012 +0400
@@ -283,9 +283,9 @@
     addTeam(team);
 }
 
-bool TeamSelWidget::isPlaying(HWTeam team) const
+bool TeamSelWidget::isPlaying(const HWTeam &team) const
 {
-    return std::find(curPlayingTeams.begin(), curPlayingTeams.end(), team)!=curPlayingTeams.end();
+    return curPlayingTeams.contains(team);
 }
 
 QList<HWTeam> TeamSelWidget::getPlayingTeams() const
@@ -298,7 +298,7 @@
     return m_curNotPlayingTeams;
 }
 
-void TeamSelWidget::pre_changeTeamStatus(HWTeam team)
+void TeamSelWidget::pre_changeTeamStatus(const HWTeam & team)
 {
     //team.setColor(framePlaying->getNextColor());
     emit acceptRequested(team);