From d32baf9894ce67850c83b6e4a281bd1cfd921a93 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 27 Dec 2022 11:28:13 +0100 Subject: Improve code in general --- src/Piece.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Piece.hpp') 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 GetMoves(); }; -- cgit v1.2.3