summaryrefslogtreecommitdiff
path: root/src/Piece.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-12-27 11:28:13 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-12-27 11:28:13 +0100
commitd32baf9894ce67850c83b6e4a281bd1cfd921a93 (patch)
tree0d760a3637bd9972f124bf22044b9ef41d6fad6a /src/Piece.hpp
parentf9ac11ad44b00f7e29ef2a9159c65f146f739835 (diff)
Improve code in general
Diffstat (limited to 'src/Piece.hpp')
-rw-r--r--src/Piece.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Piece.hpp b/src/Piece.hpp
index c1f19d6..7469ee2 100644
--- a/src/Piece.hpp
+++ b/src/Piece.hpp
@@ -19,7 +19,7 @@ public:
bool isBlack;
std::string coord;
char piece;
- Piece(char c, std::string coord);
+ Piece(char c, const std::string &coord);
/// @brief Get all possible moves according to the type of piece and its position
std::vector<std::string> GetMoves();
};