From 44495dd11e1f51d65bd937e235e371f77b52116f Mon Sep 17 00:00:00 2001 From: moonleay Date: Sun, 9 Feb 2025 22:32:19 +0100 Subject: [PATCH] fix: fixed compile --- SubCommand.cpp | 6 +----- SubCommand.h | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/SubCommand.cpp b/SubCommand.cpp index d99202b..3c84998 100644 --- a/SubCommand.cpp +++ b/SubCommand.cpp @@ -2,7 +2,7 @@ #include namespace commands { - SubCommand::SubCommand(const string& name, const bool show_result): name(name), show_result(show_result) {} + SubCommand::SubCommand(const string& indicator, const bool show_result): name(indicator), show_result(show_result) {} void SubCommand::run(stringstream& args) { cout << "Not impl!\n"; @@ -12,10 +12,6 @@ namespace commands { return this->name; } - int SubCommand::get_value() const { - return this->return_value; - } - bool SubCommand::should_display_result() const { return this->show_result; diff --git a/SubCommand.h b/SubCommand.h index 9d0e358..6862d0c 100644 --- a/SubCommand.h +++ b/SubCommand.h @@ -12,9 +12,8 @@ namespace commands bool show_result; public: - SubCommand(const string& indicator, const bool show_result); + SubCommand(const string& indicator, bool show_result); string get_name(); - int get_value() const; bool should_display_result() const; virtual void run(stringstream& args); };