aboutsummaryrefslogtreecommitdiff
path: root/cpp01/ex06/Weapon.cpp
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-11-09 11:26:50 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-11-09 11:26:50 +0100
commitb799c007a1b6911fcbe5141429ea541e1277ebdd (patch)
treed70ad0826ad2fc2d635adf9afecf89af0838d20b /cpp01/ex06/Weapon.cpp
parent1e9d90bdf9ef5fc05093d3449d883597c7f896de (diff)
downloadpiscine_cpp-b799c007a1b6911fcbe5141429ea541e1277ebdd.tar.gz
piscine_cpp-b799c007a1b6911fcbe5141429ea541e1277ebdd.tar.bz2
piscine_cpp-b799c007a1b6911fcbe5141429ea541e1277ebdd.zip
Fixing some edge cases in cpp00 and cpp01, Updated formatting
Diffstat (limited to 'cpp01/ex06/Weapon.cpp')
-rw-r--r--cpp01/ex06/Weapon.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/cpp01/ex06/Weapon.cpp b/cpp01/ex06/Weapon.cpp
index e517947..88b4357 100644
--- a/cpp01/ex06/Weapon.cpp
+++ b/cpp01/ex06/Weapon.cpp
@@ -6,23 +6,20 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/02 16:36:23 by cacharle #+# #+# */
-/* Updated: 2020/04/13 10:25:35 by charles ### ########.fr */
+/* Updated: 2020/11/09 11:08:23 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "Weapon.hpp"
-Weapon::Weapon(std::string t)
- : type(t)
-{
-}
+Weapon::Weapon(std::string t) : type(t) {}
-const std::string& Weapon::getType() const
+std::string const& Weapon::getType() const
{
return type;
}
-void Weapon::setType(const std::string& t)
+void Weapon::setType(std::string const& t)
{
type = t;
}