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/ex03/NinjaTrap.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/ex03/NinjaTrap.hpp')
| -rw-r--r-- | cpp03/ex03/NinjaTrap.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp03/ex03/NinjaTrap.hpp b/cpp03/ex03/NinjaTrap.hpp index 217ae33..d075dba 100644 --- a/cpp03/ex03/NinjaTrap.hpp +++ b/cpp03/ex03/NinjaTrap.hpp @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/13 17:31:24 by charles #+# #+# */ -/* Updated: 2020/04/13 17:45:16 by charles ### ########.fr */ +/* Updated: 2020/11/10 14:43:01 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -21,9 +21,9 @@ class NinjaTrap : public ClapTrap { public: NinjaTrap(); - NinjaTrap(std::string name); + NinjaTrap(std::string const& name); NinjaTrap(NinjaTrap const& other); - void operator=(NinjaTrap const& other); + NinjaTrap& operator=(NinjaTrap const& other); ~NinjaTrap(); void ninjaShoebox(NinjaTrap const& target); |
