Cosmetics

This commit is contained in:
Olivier Teulière 2012-10-05 17:55:41 +02:00
parent 77fcfab8a5
commit 65ed44d66d
6 changed files with 10 additions and 8 deletions

View file

@ -265,7 +265,7 @@ int FreeGame::checkPass(const Player &iPlayer,
const wstring &iToChange) const
{
// Check that the game is not finished
if (m_finished)
if (isFinished())
return 3;
// Check that the letters are valid for the current dictionary

View file

@ -547,7 +547,9 @@ void ArbitAssignments::assignTopMove()
if (results.size() == 1)
helperAssignMove(Move(results.get(0)));
else
{
LOG_DEBUG("The top move is not unique");
}
}

View file

@ -141,7 +141,7 @@ PublicGame * NewGame::createGame(const Dictionary &iDic) const
QString name = players.at(num).name;
if (name == "")
name = _q("Player %1").arg(num + 1);
// Ensure unicity of the players names
// Ensure uniqueness of the players names
if (allNames.find(name) != allNames.end())
{
int n = 2;

View file

@ -73,7 +73,7 @@ private:
/// Encapsulated training game, can be NULL
PublicGame *m_game;
/// Inidicate whether the columns should be resized after a search
/// Indicate whether the columns should be resized after a search
bool m_autoResizeColumns;
/// Model of the search results

View file

@ -274,7 +274,7 @@ QValidator *ValidatorFactory::newDicRackValidator(QObject *parent,
// }}}
// {{{ Validator used for the regexp line edit
// {{{ RegexpValidator: Validator used for the regexp line edit
class RegexpValidator: public QValidator
{
public:
@ -328,7 +328,7 @@ QValidator *ValidatorFactory::newRegexpValidator(QObject *parent,
// }}}
// {{{ Validator used for the "play word" line edit
// {{{ PlayWordValidator: Validator used for the "play word" line edit
class PlayWordValidator: public QValidator
{
public:

View file

@ -121,13 +121,13 @@ foreach my $scenario (@scenarios_to_play)
# Check that the needed files exist
if (not -f $input_file)
{
print "--> Error: Missing file: $input_file\n";
print "--> Error: missing file: $input_file\n";
push(@errors, $scenario);
next;
}
if (not -f $ref_file)
{
print "--> Error: Missing file: $ref_file\n";
print "--> Error: missing file: $ref_file\n";
push(@errors, $scenario);
next;
}
@ -137,7 +137,7 @@ foreach my $scenario (@scenarios_to_play)
my $rc = `$eliottxt $ods $randseed < $input_file > $run_file 2>&1`;
if ($rc ne "")
{
print "--> Error: Execution of scenario failed (return value: $rc)\n";
print "--> Error: execution of scenario failed (return value: $rc)\n";
push(@errors, $scenario);
next;
}