diff options
Autocommit at 05.05.2022 @ 14:18
2 files changed, 3 insertions, 3 deletions
| -rw-r--r-- | src/ConsoleInterface/Menu.cpp | 4 | ||||
| -rw-r--r-- | src/ConsoleInterface/Menu.h | 2 |
diff --git a/src/ConsoleInterface/Menu.cpp b/src/ConsoleInterface/Menu.cpp index fc2c32a..190fe42 100644 --- a/src/ConsoleInterface/Menu.cpp +++ b/src/ConsoleInterface/Menu.cpp @@ -7,8 +7,8 @@ Menu::Menu(const Command* commands, unsigned commandCount) { menuOptions = List<Command>(commands, commandCount); } -void Menu::addCommand(const Command* command) { - menuOptions.add(*command); +void Menu::addCommand(const Command& command) { + menuOptions.add(command); } void Menu::navigate() const { diff --git a/src/ConsoleInterface/Menu.h b/src/ConsoleInterface/Menu.h index e81d77f..ba0a413 100644 --- a/src/ConsoleInterface/Menu.h +++ b/src/ConsoleInterface/Menu.h @@ -11,7 +11,7 @@ public: Menu(); Menu(const Command* commands, unsigned commandCount); - void addCommand(const Command* command); + void addCommand(const Command& command); void navigate() const; }; |
