diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-04-13 10:33:05 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-04-13 10:33:05 +0200 |
| commit | 0f3240844dbd5a874e1565a988ef355ededab6a5 (patch) | |
| tree | efc1a1307863d173be17a12fbab6b84fe7d00960 /cpp01/ex06/Weapon.cpp | |
| parent | 629d52b1262879a346e9ca17567a8f483c60ba0a (diff) | |
| download | piscine_cpp-0f3240844dbd5a874e1565a988ef355ededab6a5.tar.gz piscine_cpp-0f3240844dbd5a874e1565a988ef355ededab6a5.tar.bz2 piscine_cpp-0f3240844dbd5a874e1565a988ef355ededab6a5.zip | |
Fixing cpp01
Diffstat (limited to 'cpp01/ex06/Weapon.cpp')
| -rw-r--r-- | cpp01/ex06/Weapon.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp01/ex06/Weapon.cpp b/cpp01/ex06/Weapon.cpp index 86738a8..e517947 100644 --- a/cpp01/ex06/Weapon.cpp +++ b/cpp01/ex06/Weapon.cpp @@ -6,23 +6,23 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/02 16:36:23 by cacharle #+# #+# */ -/* Updated: 2020/02/02 16:56:48 by cacharle ### ########.fr */ +/* Updated: 2020/04/13 10:25:35 by charles ### ########.fr */ /* */ /* ************************************************************************** */ #include "Weapon.hpp" -Weapon::Weapon(std::string type) +Weapon::Weapon(std::string t) + : type(t) { - this->type = type; } -const std::string& Weapon::getType() +const std::string& Weapon::getType() const { - return &type; + return type; } -void Weapon::setType(const std::string& type) +void Weapon::setType(const std::string& t) { - this->type = type; + type = t; } |
