Commit 60aeff37 authored by Frederik Schwarzer's avatar Frederik Schwarzer

Naming variable according to other occurrences.

parent b2491fc9
......@@ -1692,13 +1692,13 @@ void Board::dumpBoard() const
dumpBoard(m_field);
}
void Board::dumpBoard(const std::vector<int> & board) const
void Board::dumpBoard(const std::vector<int> & field) const
{
qCDebug(KSHISEN_General) << "Board contents:";
for (decltype(yTiles()) y = 0; y < yTiles(); ++y) {
QString row;
for (decltype(xTiles()) x = 0; x < xTiles(); ++x) {
auto tile = board.at(y * xTiles() + x);
auto tile = field.at(y * xTiles() + x);
if (tile == EMPTY) {
row += QLatin1String(" --");
} else {
......
......@@ -94,7 +94,7 @@ public:
void makeHintMove();
void finish();
void dumpBoard() const;
void dumpBoard(const std::vector<int> & board) const;
void dumpBoard(const std::vector<int> & field) const;
#endif
/// Returns the number of tiles left on the board
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment