From 1f396fa815d487678970ce493f6e4bb9f8baca57 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 15:14:00 +0300 Subject: Autocommit at 05.05.2022 @ 15:14 --- src/ConsoleInterface/Menu.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/ConsoleInterface/Menu.cpp') diff --git a/src/ConsoleInterface/Menu.cpp b/src/ConsoleInterface/Menu.cpp index 3df71ae..4112ed2 100644 --- a/src/ConsoleInterface/Menu.cpp +++ b/src/ConsoleInterface/Menu.cpp @@ -2,11 +2,13 @@ #include "Toolbox.hpp" #include -Menu::Menu() : menuOptions() { - strcpy(title, "Menu"); +Menu::Menu() : Menu("Menu") {} + +Menu::Menu(const char* title) : menuOptions() { + strcpy(this->title, title); } -Menu::Menu(const Command* commands, unsigned commandCount, const char* title) { +Menu::Menu(const char* title, const Command* commands, unsigned commandCount) { menuOptions = List(commands, commandCount); strcpy(this->title, title); } -- cgit v1.3.1-23-gd82d