From d64e22dc6b921b0af9abf2193ac38a92565af1a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Sun, 6 Nov 2005 00:38:16 +0000 Subject: [PATCH] Fixed a typo and avoided a useless copy --- game/duplicate.cpp | 2 +- game/player.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/game/duplicate.cpp b/game/duplicate.cpp index 9e2a3e0..6e28390 100644 --- a/game/duplicate.cpp +++ b/game/duplicate.cpp @@ -108,7 +108,7 @@ int Duplicate::start() return 1; } - PlayedRack pld = m_players[m_currPlayer]->getCurrentRack(); + const PlayedRack& pld = m_players[m_currPlayer]->getCurrentRack(); /* All the players have the same rack */ for (int i = 0; i < getNPlayers(); i++) { diff --git a/game/player.h b/game/player.h index 205eba5..52ad8d8 100644 --- a/game/player.h +++ b/game/player.h @@ -27,7 +27,7 @@ class Round; /** - * This class is the parent classes for all the players involved in a game. + * This class is the parent class for all the players involved in a game. * It defines the common metohds to update the rack, score, etc... */ class Player