diff --git a/ex05/Harl.cpp b/ex05/Harl.cpp index a55c75c..02dedf5 100644 --- a/ex05/Harl.cpp +++ b/ex05/Harl.cpp @@ -5,10 +5,10 @@ typedef void (Harl::*HarlComplaint)(void); int getLevelIdx(std::string level) { static const std::string levels[] = { - "debug", - "info", - "warning", - "error", + "DEBUG", + "INFO", + "WARNING", + "ERROR", }; for (int i = 0; i < 4; i++) { if (level == levels[i]) diff --git a/ex05/main.cpp b/ex05/main.cpp index ea459b8..98f5919 100644 --- a/ex05/main.cpp +++ b/ex05/main.cpp @@ -4,9 +4,9 @@ int main(void) { Harl harl; harl.complain("Debug"); - harl.complain("debug"); - harl.complain("info"); - harl.complain("warning"); - harl.complain("error"); + harl.complain("DEBUG"); + harl.complain("INFO"); + harl.complain("WARNING"); + harl.complain("ERROR"); return 0; }