diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-11-10 14:50:38 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-11-10 15:06:45 +0100 |
| commit | aa40eb5dedd39263ff511de01d6833d24e33b736 (patch) | |
| tree | 58031a52433ed08bb3347dd95ecb492b6b8c17ca /cpp03/ex01/ScavTrap.hpp | |
| parent | 18ca1fc67ccc7bf176287f7b2908a33a597ec67a (diff) | |
| download | piscine_cpp-aa40eb5dedd39263ff511de01d6833d24e33b736.tar.gz piscine_cpp-aa40eb5dedd39263ff511de01d6833d24e33b736.tar.bz2 piscine_cpp-aa40eb5dedd39263ff511de01d6833d24e33b736.zip | |
Changing operator= and const reference in Traps
Diffstat (limited to 'cpp03/ex01/ScavTrap.hpp')
| -rw-r--r-- | cpp03/ex01/ScavTrap.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp03/ex01/ScavTrap.hpp b/cpp03/ex01/ScavTrap.hpp index f5bc3cc..64fae68 100644 --- a/cpp03/ex01/ScavTrap.hpp +++ b/cpp03/ex01/ScavTrap.hpp @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/13 14:11:51 by charles #+# #+# */ -/* Updated: 2020/04/13 15:18:01 by charles ### ########.fr */ +/* Updated: 2020/11/10 14:13:16 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -21,9 +21,9 @@ class ScavTrap { public: ScavTrap(); - ScavTrap(std::string name); + ScavTrap(std::string const& name); ScavTrap(ScavTrap const& other); - void operator=(ScavTrap const& other); + ScavTrap& operator=(ScavTrap const& other); ~ScavTrap(); void rangedAttack(std::string const& target) const; |
