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);