fix: fixed compile

This commit is contained in:
moonleay 2025-02-09 22:32:19 +01:00
parent 0305c5034d
commit 44495dd11e
Signed by: moonleay
GPG key ID: 82667543CCD715FB
2 changed files with 2 additions and 7 deletions

View file

@ -2,7 +2,7 @@
#include <sstream>
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;

View file

@ -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);
};