From 5522ebf3ba07a2a5e9043657923f46d48f3fb1fb Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Mon, 31 Jul 2023 17:48:23 +0200 Subject: [PATCH] ex05: remove const to respect the subject --- ex05/src/Harl.cpp | 8 ++++---- ex05/src/Harl.hpp | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ex05/src/Harl.cpp b/ex05/src/Harl.cpp index 88c28ab..cea49d2 100644 --- a/ex05/src/Harl.cpp +++ b/ex05/src/Harl.cpp @@ -25,22 +25,22 @@ void Harl::complain(std::string level) } } -void Harl::debug() const +void Harl::debug() { std::cout << "I love having extra bacon for my 7XL-double-cheese-triple-pickle-special-ketchup burger. I really do !" << std::endl; } -void Harl::info() const +void Harl::info() { std::cout << "I cannot believe adding extra bacon costs more money. You didn’t put enough bacon in my burger ! If you did, I wouldn’t be asking for more !" << std::endl; } -void Harl::warning() const +void Harl::warning() { std::cout << "I think I deserve to have some extra bacon for free. I’ve been coming for years whereas you started working here since last month." << std::endl; } -void Harl::error() const +void Harl::error() { std::cout << "This is unacceptable ! I want to speak to the manager now." << std::endl; } diff --git a/ex05/src/Harl.hpp b/ex05/src/Harl.hpp index ca9f23a..73c38be 100644 --- a/ex05/src/Harl.hpp +++ b/ex05/src/Harl.hpp @@ -5,13 +5,13 @@ class Harl { private: - void debug() const; - void info() const; - void warning() const; - void error() const; + void debug(); + void info(); + void warning(); + void error(); public: void complain(std::string level); }; -typedef void (Harl::*HarlMethod)() const; +typedef void (Harl::*HarlMethod)();