mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-11-16 07:47:39 +01:00
Cosmetics
This commit is contained in:
parent
77fcfab8a5
commit
65ed44d66d
6 changed files with 10 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue