From 07cc7d9091705cb09e16c1b0475150828f5efd32 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 14:18:39 +0300 Subject: Autocommit at 05.05.2022 @ 14:18 --- src/ConsoleInterface/Menu.cpp | 4 ++-- src/ConsoleInterface/Menu.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ConsoleInterface') 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(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; }; -- cgit v1.3.1-25-gf67e