Website Summary Files Commits Branches @commit @diff @stats
path: root / src / ConsoleInterface / Menu.cpp
diff options
context:
space:
mode:
Commit07cc7d9091705cb09e16c1b0475150828f5efd32 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 14:18:39 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 14:18:39 +0300
Files9b7a857423cc04eeeeff613d369f15f7e72c5869 /src/ConsoleInterface/Menu.cpp
FMI-OOP-P1_TicketSystem-07cc7d9091705cb09e16c1b0475150828f5efd32.tar
FMI-OOP-P1_TicketSystem-07cc7d9091705cb09e16c1b0475150828f5efd32.tar.gz
FMI-OOP-P1_TicketSystem-07cc7d9091705cb09e16c1b0475150828f5efd32.zip
Parentb391de42cd39e3dfe48544b0825bc1256f5577cc (diff)
Autocommit at 05.05.2022 @ 14:18
1 files changed, 2 insertions, 2 deletions
-rw-r--r--src/ConsoleInterface/Menu.cpp4
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 {