From a05dbcdfb02a2401f9b74e0eeeaa675b3d4aa06a Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Fri, 2 Aug 2024 23:55:53 +0100 Subject: [PATCH] main.cpp: Removed unnecessary `QString`s --- src/lime_qt/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lime_qt/main.cpp b/src/lime_qt/main.cpp index 3c6110887..ef014ac41 100644 --- a/src/lime_qt/main.cpp +++ b/src/lime_qt/main.cpp @@ -614,8 +614,6 @@ void GMainWindow::InitializeHotkeys() { const QString main_window = QStringLiteral("Main Window"); const QString fullscreen = QStringLiteral("Fullscreen"); - const QString swap_screens = QStringLiteral("Swap Screens"); - const QString rotate_screens = QStringLiteral("Rotate Screens Upright"); // QAction Hotkeys const auto link_action_shortcut = [&](QAction* action, const QString& action_name, @@ -639,8 +637,9 @@ void GMainWindow::InitializeHotkeys() { link_action_shortcut(ui->action_Show_Status_Bar, QStringLiteral("Toggle Status Bar")); link_action_shortcut(ui->action_Fullscreen, fullscreen, true); link_action_shortcut(ui->action_Capture_Screenshot, QStringLiteral("Capture Screenshot")); - link_action_shortcut(ui->action_Screen_Layout_Swap_Screens, swap_screens); - link_action_shortcut(ui->action_Screen_Layout_Upright_Screens, rotate_screens); + link_action_shortcut(ui->action_Screen_Layout_Swap_Screens, QStringLiteral("Swap Screens")); + link_action_shortcut(ui->action_Screen_Layout_Upright_Screens, + QStringLiteral("Rotate Screens Upright")); link_action_shortcut(ui->action_Enable_Frame_Advancing, QStringLiteral("Toggle Frame Advancing")); link_action_shortcut(ui->action_Advance_Frame, QStringLiteral("Advance Frame"));