summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Schwarzer <[email protected]>2016-05-19 20:35:13 +0200
committerFrederik Schwarzer <[email protected]>2016-05-19 20:35:13 +0200
commit60aeff37a0f485187561aa8ff680f8c224a1a0a5 (patch)
tree737fc3d14acfe867daa593b0362181d1c45f313c
parentb2491fc9dadcb868d39af1f49e18f33ac2102054 (diff)
Naming variable according to other occurrences.
-rw-r--r--src/board.cpp4
-rw-r--r--src/board.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/board.cpp b/src/board.cpp
index 200cb4b..d338e26 100644
--- a/src/board.cpp
+++ b/src/board.cpp
@@ -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 {
diff --git a/src/board.h b/src/board.h
index 603bfbd..ad0e00f 100644
--- a/src/board.h
+++ b/src/board.h
@@ -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