aboutsummaryrefslogtreecommitdiff
path: root/cpp01/ex06/HumanB.hpp
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-11-10 09:26:04 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-11-10 09:26:04 +0100
commit9dd7a48967f99793b818f7362ac8e95717186774 (patch)
treed96d81af7cd6d36de7b5e01cab7688b60446f03a /cpp01/ex06/HumanB.hpp
parent631a8d7b6c214da48f7748e78fc8c308960414fb (diff)
downloadpiscine_cpp-9dd7a48967f99793b818f7362ac8e95717186774.tar.gz
piscine_cpp-9dd7a48967f99793b818f7362ac8e95717186774.tar.bz2
piscine_cpp-9dd7a48967f99793b818f7362ac8e95717186774.zip
Added more tests for cpp01/07
Diffstat (limited to 'cpp01/ex06/HumanB.hpp')
-rw-r--r--cpp01/ex06/HumanB.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp01/ex06/HumanB.hpp b/cpp01/ex06/HumanB.hpp
index fc9236c..d21cb9d 100644
--- a/cpp01/ex06/HumanB.hpp
+++ b/cpp01/ex06/HumanB.hpp
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/02 16:42:54 by cacharle #+# #+# */
-/* Updated: 2020/11/09 11:09:56 by cacharle ### ########.fr */
+/* Updated: 2020/11/10 08:39:45 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -21,10 +21,10 @@ class HumanB
public:
HumanB(std::string const& name);
void attack();
- void setWeapon(Weapon& weapon);
+ void setWeapon(Weapon const& weapon);
private:
- std::string m_name;
- Weapon* m_weapon;
+ std::string m_name;
+ Weapon const* m_weapon;
};
#endif