Skip to content

Commit

Permalink
#401: 0-argument executeCommand() overload removed
Browse files Browse the repository at this point in the history
This overload can be provided implicitly via a default empty argument
list parameter to the list-based method.
  • Loading branch information
Matthew Mott committed Jul 13, 2022
1 parent dfaa3ec commit d2cc12a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions include/icommandsystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,7 @@ class ICommandSystem: public RegisterableModule
virtual void execute(const std::string& input) = 0;

/// Execute the named command with the given list of arguments
virtual void executeCommand(const std::string& name, const ArgumentList& args) = 0;

/// Convenience method to execute a command with no arguments
void executeCommand(const std::string& name)
{
executeCommand(name, ArgumentList{});
}
virtual void executeCommand(const std::string& name, const ArgumentList& args = {}) = 0;

/// Convenience method to execute a command with 1 argument
void executeCommand(const std::string& name, const Argument& arg1)
Expand Down

0 comments on commit d2cc12a

Please sign in to comment.