From b8e39b947890e74d82530e25ad9d02668aae1f0c Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 12 Nov 2020 15:46:07 +0100 Subject: Reformating cpp04 classes --- cpp04/ex03/Cure.cpp | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'cpp04/ex03/Cure.cpp') diff --git a/cpp04/ex03/Cure.cpp b/cpp04/ex03/Cure.cpp index 1f3e0d5..e27ae26 100644 --- a/cpp04/ex03/Cure.cpp +++ b/cpp04/ex03/Cure.cpp @@ -6,34 +6,25 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 17:38:01 by charles #+# #+# */ -/* Updated: 2020/04/14 17:41:32 by charles ### ########.fr */ +/* Updated: 2020/11/12 15:43:44 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include "Cure.hpp" -Cure::Cure() : AMateria("cure") -{ -} +Cure::Cure() : AMateria("cure") {} -Cure::Cure(Cure const& other) -{ - *this = other; -} +Cure::Cure(Cure const& other) { *this = other; } -void Cure::operator=(Cure const& other) +Cure& Cure::operator=(Cure const& other) { AMateria::operator=(other); + return *this; } -Cure::~Cure() -{ -} +Cure::~Cure() {} -AMateria* Cure::clone() const -{ - return new Cure(*this); -} +AMateria* Cure::clone() const { return new Cure(*this); } void Cure::use(ICharacter& target) { -- cgit