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 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ConsoleInterface/Menu.cpp') 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 { -- cgit v1.3.1-23-gd82d