const
This commit is contained in:
parent
9239c100d5
commit
b4efc5a245
2 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ class Piece {
|
|||
std::string categorie;
|
||||
|
||||
public:
|
||||
Piece(std::string categorie); // constructor
|
||||
Piece(const std::string categorie); // constructor
|
||||
virtual ~Piece(); // destructor
|
||||
|
||||
Piece(const Piece &); // copy constructor
|
||||
|
|
|
@ -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() {}
|
||||
|
||||
|
|
Reference in a new issue