From aa40eb5dedd39263ff511de01d6833d24e33b736 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 10 Nov 2020 14:50:38 +0100 Subject: Changing operator= and const reference in Traps --- cpp03/ex03/NinjaTrap.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp03/ex03/NinjaTrap.hpp') 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 +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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); -- cgit