summaryrefslogtreecommitdiff
path: root/Userland/Applications/Calculator/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/Calculator/main.cpp')
-rw-r--r--Userland/Applications/Calculator/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Applications/Calculator/main.cpp b/Userland/Applications/Calculator/main.cpp
index f299edb7ce..13e19e4add 100644
--- a/Userland/Applications/Calculator/main.cpp
+++ b/Userland/Applications/Calculator/main.cpp
@@ -39,12 +39,12 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->set_icon(app_icon.bitmap_for_size(16));
- auto& file_menu = window->add_menu("&File");
+ auto& file_menu = window->add_menu("&File"_short_string);
file_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) {
GUI::Application::the()->quit();
}));
- auto& edit_menu = window->add_menu("&Edit");
+ auto& edit_menu = window->add_menu("&Edit"_short_string);
edit_menu.add_action(GUI::CommonActions::make_copy_action([&](auto&) {
GUI::Clipboard::the().set_plain_text(widget->get_entry());
}));
@@ -58,7 +58,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
}
}));
- auto& constants_menu = window->add_menu("&Constants");
+ auto& constants_menu = window->add_menu(TRY("&Constants"_string));
auto const power = Crypto::NumberTheory::Power("10"_bigint, "10"_bigint);
constants_menu.add_action(GUI::Action::create("&Pi", TRY(Gfx::Bitmap::load_from_file("/res/icons/calculator/pi.png"sv)), [&](auto&) {
@@ -71,7 +71,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
widget->set_typed_entry(Crypto::BigFraction { Crypto::SignedBigInteger(16180339887), power });
}));
- auto& round_menu = window->add_menu("&Round");
+ auto& round_menu = window->add_menu("&Round"_short_string);
GUI::ActionGroup preview_actions;
static constexpr auto rounding_modes = Array { 0, 2, 4 };
@@ -121,7 +121,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
round_menu.action_at(last_rounding_mode.value())->activate();
- auto& help_menu = window->add_menu("&Help");
+ auto& help_menu = window->add_menu("&Help"_short_string);
help_menu.add_action(GUI::CommonActions::make_command_palette_action(window));
help_menu.add_action(GUI::CommonActions::make_about_action("Calculator", app_icon, window));