From 28976994645b0a052d734a2c47b66b34bf764430 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 5 Sep 2024 04:47:34 +0300 Subject: [PATCH] make arguments const --- src/app/browser/header/menu.cpp | 24 ++++++++++++------------ src/app/browser/header/menu.hpp | 12 ++++++------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/app/browser/header/menu.cpp b/src/app/browser/header/menu.cpp index da6a704c..26fc8379 100644 --- a/src/app/browser/header/menu.cpp +++ b/src/app/browser/header/menu.cpp @@ -24,19 +24,19 @@ Menu::Menu() } Glib::RefPtr Menu::main( - Glib::RefPtr main_tab, - Glib::RefPtr main_tools + const Glib::RefPtr MAIN_TAB, + const Glib::RefPtr MAIN_TOOLS ) { auto menu = Gio::Menu::create(); menu->append_submenu( _("Tab"), - main_tab + MAIN_TAB ); menu->append_submenu( _("Tools"), - main_tools + MAIN_TOOLS ); menu->append( @@ -48,8 +48,8 @@ Glib::RefPtr Menu::main( } Glib::RefPtr Menu::main_tab( - Glib::RefPtr main_tab_page, - Glib::RefPtr main_tab_close + const Glib::RefPtr MAIN_TAB_PAGE, + const Glib::RefPtr MAIN_TAB_CLOSE ) { auto menu = Gio::Menu::create(); @@ -60,38 +60,38 @@ Glib::RefPtr Menu::main_tab( menu->append_submenu( _("Page"), - main_tab_page + MAIN_TAB_PAGE ); menu->append_submenu( _("Close"), - main_tab_close + MAIN_TAB_CLOSE ); return menu; } Glib::RefPtr Menu::main_tab_page( - Glib::RefPtr main_tab_page_navigation + const Glib::RefPtr MAIN_TAB_PAGE_NAVIGATION ) { auto menu = Gio::Menu::create(); menu->append_submenu( _("Navigation"), - main_tab_page_navigation + MAIN_TAB_PAGE_NAVIGATION ); return menu; } Glib::RefPtr Menu::main_tab_page_navigation( - Glib::RefPtr main_tab_page_navigation_history + const Glib::RefPtr MAIN_TAB_PAGE_NAVIGATION_HISTORY ) { auto menu = Gio::Menu::create(); menu->append_submenu( _("History"), - main_tab_page_navigation_history + MAIN_TAB_PAGE_NAVIGATION_HISTORY ); menu->append( diff --git a/src/app/browser/header/menu.hpp b/src/app/browser/header/menu.hpp index e61da898..afa374f5 100644 --- a/src/app/browser/header/menu.hpp +++ b/src/app/browser/header/menu.hpp @@ -11,24 +11,24 @@ namespace app::browser::header { // 1 level static Glib::RefPtr main( - Glib::RefPtr main_tab, - Glib::RefPtr main_tools + const Glib::RefPtr MAIN_TAB, + const Glib::RefPtr MAIN_TOOLS ); // 2 level static Glib::RefPtr main_tab( - Glib::RefPtr main_tab_page, - Glib::RefPtr main_tab_close + const Glib::RefPtr MAIN_TAB_PAGE, + const Glib::RefPtr MAIN_TAB_CLOSE ); // 3 level static Glib::RefPtr main_tab_page( - Glib::RefPtr main_tab_page_navigation + const Glib::RefPtr MAIN_TAB_PAGE_NAVIGATION ); // 4 level static Glib::RefPtr main_tab_page_navigation( - Glib::RefPtr main_tab_page_navigation_history + const Glib::RefPtr MAIN_TAB_PAGE_NAVIGATION_HISTORY ); // 5 level