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.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Piece.cpp') diff --git a/src/Piece.cpp b/src/Piece.cpp index 8ace179..2a32a9d 100644 --- a/src/Piece.cpp +++ b/src/Piece.cpp @@ -1,7 +1,7 @@ #include "Piece.hpp" namespace chessarbiter { -Piece::Piece(char c, std::string coord) +Piece::Piece(char c, const std::string &coord) : piece(c), isBlack(!isupper(c)), coord(coord) {} std::vector Piece::GetMoves() { -- cgit v1.2.3