diff options
1 files changed, 4 insertions, 4 deletions
| -rw-r--r-- | src/Generic/ConsoleInterface/Menu.cpp | 8 |
diff --git a/src/Generic/ConsoleInterface/Menu.cpp b/src/Generic/ConsoleInterface/Menu.cpp index 0b27d48..d672540 100644 --- a/src/Generic/ConsoleInterface/Menu.cpp +++ b/src/Generic/ConsoleInterface/Menu.cpp @@ -27,7 +27,7 @@ enum MessageType { Warning, Error, }; -String msg; +const char* msg; MessageType msgType; void Menu::registerError(const char* message) const { @@ -61,9 +61,9 @@ void Menu::navigate() const { titleBox(title); switch(msgType) { - case Error: errorBox(msg.get_cstr()); msgType = NoPrint; break; - case Warning: warningBox(msg.get_cstr()); msgType = NoPrint; break; - case Success: successBox(msg.get_cstr()); msgType = NoPrint; break; + case Error: errorBox(msg); msgType = NoPrint; break; + case Warning: warningBox(msg); msgType = NoPrint; break; + case Success: successBox(msg); msgType = NoPrint; break; case NoPrint: printLine(""); break; } printLine(""); |
