diff --git a/includes/Piece.hpp b/includes/Piece.hpp index fe5a877..21a8c04 100644 --- a/includes/Piece.hpp +++ b/includes/Piece.hpp @@ -10,8 +10,8 @@ class Piece { std::string categorie; public: - Piece(std::string categorie); // constructor - virtual ~Piece(); // destructor + Piece(const std::string categorie); // constructor + virtual ~Piece(); // destructor Piece(const Piece &); // copy constructor const Piece &operator=(const Piece &); // copy assignement diff --git a/src/Piece.cpp b/src/Piece.cpp index 72b3eb0..2b35759 100644 --- a/src/Piece.cpp +++ b/src/Piece.cpp @@ -1,6 +1,6 @@ #include "../includes/Piece.hpp" -Piece::Piece(std::string cat) { std::cout << "pièce\n"; } +Piece::Piece(const std::string cat) { std::cout << "pièce - " << cat << "\n"; } Piece::~Piece() {}