From daf3aa6c7d5087fe1b32cf37658a8711ffd78a06 Mon Sep 17 00:00:00 2001 From: Adam JOLY Date: Sat, 9 Nov 2024 18:48:58 +0100 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix(Violence):?= =?UTF-8?q?=20Red=20the=20subject?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ex03/HumanA.cpp | 2 +- ex03/HumanB.cpp | 2 +- ex03/Weapon.cpp | 4 ++-- ex03/Weapon.hpp | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ex03/HumanA.cpp b/ex03/HumanA.cpp index b9fceae..d3803d4 100644 --- a/ex03/HumanA.cpp +++ b/ex03/HumanA.cpp @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/11/04 19:41:23 by adjoly #+# #+# */ -/* Updated: 2024/11/05 17:50:39 by adjoly ### ########.fr */ +/* Updated: 2024/11/09 18:47:57 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/ex03/HumanB.cpp b/ex03/HumanB.cpp index 2c123de..3d0d433 100644 --- a/ex03/HumanB.cpp +++ b/ex03/HumanB.cpp @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/11/04 19:43:18 by adjoly #+# #+# */ -/* Updated: 2024/11/05 17:54:52 by adjoly ### ########.fr */ +/* Updated: 2024/11/09 18:48:06 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/ex03/Weapon.cpp b/ex03/Weapon.cpp index 291670c..68220b2 100644 --- a/ex03/Weapon.cpp +++ b/ex03/Weapon.cpp @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/11/04 19:23:35 by adjoly #+# #+# */ -/* Updated: 2024/11/05 17:57:08 by adjoly ### ########.fr */ +/* Updated: 2024/11/09 18:46:35 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ @@ -16,7 +16,7 @@ void Weapon::setType(std::string newType) { this->_type = newType; } -std::string Weapon::getType(void) { +const std::string &Weapon::getType(void) { return (this->_type); } diff --git a/ex03/Weapon.hpp b/ex03/Weapon.hpp index ef436bf..e403b11 100644 --- a/ex03/Weapon.hpp +++ b/ex03/Weapon.hpp @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/11/04 19:21:24 by adjoly #+# #+# */ -/* Updated: 2024/11/05 17:56:50 by adjoly ### ########.fr */ +/* Updated: 2024/11/09 18:46:33 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ @@ -19,7 +19,7 @@ class Weapon { std::string _type; public: - std::string getType(void); + const std::string &getType(void); void setType(std::string newType); Weapon(std::string type);