aboutsummaryrefslogtreecommitdiff
path: root/cpp03/ex04/ScavTrap.hpp
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-11-11 08:27:14 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-11-11 08:27:14 +0100
commit2e0cf63a219d24ef07412deca9b0e6cb02882b46 (patch)
tree79d11973ea3c40b8e7cbe0eeefba56dacfbb0583 /cpp03/ex04/ScavTrap.hpp
parentaa40eb5dedd39263ff511de01d6833d24e33b736 (diff)
downloadpiscine_cpp-2e0cf63a219d24ef07412deca9b0e6cb02882b46.tar.gz
piscine_cpp-2e0cf63a219d24ef07412deca9b0e6cb02882b46.tar.bz2
piscine_cpp-2e0cf63a219d24ef07412deca9b0e6cb02882b46.zip
Fixing small bugs in cpp03
Diffstat (limited to 'cpp03/ex04/ScavTrap.hpp')
-rw-r--r--cpp03/ex04/ScavTrap.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp03/ex04/ScavTrap.hpp b/cpp03/ex04/ScavTrap.hpp
index a1d625b..e908722 100644
--- a/cpp03/ex04/ScavTrap.hpp
+++ b/cpp03/ex04/ScavTrap.hpp
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/13 14:11:51 by charles #+# #+# */
-/* Updated: 2020/04/13 18:41:33 by charles ### ########.fr */
+/* Updated: 2020/11/11 07:04:45 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -16,13 +16,13 @@
# include <cstdlib>
# include "ClapTrap.hpp"
-class ScavTrap : public ClapTrap
+class ScavTrap : virtual public ClapTrap
{
public:
ScavTrap();
- ScavTrap(std::string name);
+ ScavTrap(std::string const& name);
ScavTrap(ScavTrap const& other);
- void operator=(ScavTrap const& other);
+ ScavTrap& operator=(ScavTrap const& other);
~ScavTrap();
void challengeNewcomer(std::string const& target);