diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-11-12 15:46:07 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-11-12 15:46:07 +0100 |
| commit | b8e39b947890e74d82530e25ad9d02668aae1f0c (patch) | |
| tree | f59acfdecb0711137c200a4c5acb854e351f9cf9 /cpp04/ex03/Ice.cpp | |
| parent | 96dcf214a8c40529b251ea31ef037868583dd1da (diff) | |
| download | piscine_cpp-b8e39b947890e74d82530e25ad9d02668aae1f0c.tar.gz piscine_cpp-b8e39b947890e74d82530e25ad9d02668aae1f0c.tar.bz2 piscine_cpp-b8e39b947890e74d82530e25ad9d02668aae1f0c.zip | |
Reformating cpp04 classes
Diffstat (limited to 'cpp04/ex03/Ice.cpp')
| -rw-r--r-- | cpp04/ex03/Ice.cpp | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/cpp04/ex03/Ice.cpp b/cpp04/ex03/Ice.cpp index 976cb84..c663104 100644 --- a/cpp04/ex03/Ice.cpp +++ b/cpp04/ex03/Ice.cpp @@ -6,34 +6,25 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/14 16:32:27 by charles #+# #+# */ -/* Updated: 2020/04/14 17:36:26 by charles ### ########.fr */ +/* Updated: 2020/11/12 15:44:48 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include "Ice.hpp" -Ice::Ice() : AMateria("ice") -{ -} +Ice::Ice() : AMateria("ice") {} -Ice::Ice(Ice const& other) -{ - *this = other; -} +Ice::Ice(Ice const& other) { *this = other; } -void Ice::operator=(Ice const& other) +Ice& Ice::operator=(Ice const& other) { AMateria::operator=(other); + return *this; } -Ice::~Ice() -{ -} +Ice::~Ice() {} -AMateria* Ice::clone() const -{ - return new Ice(*this); -} +AMateria* Ice::clone() const { return new Ice(*this); } void Ice::use(ICharacter& target) { |
