diff --git a/src/app/browser/header/menu.cpp b/src/app/browser/header/menu.cpp index 26fc8379..1ebf5935 100644 --- a/src/app/browser/header/menu.cpp +++ b/src/app/browser/header/menu.cpp @@ -24,8 +24,8 @@ Menu::Menu() } Glib::RefPtr Menu::main( - const Glib::RefPtr MAIN_TAB, - const Glib::RefPtr MAIN_TOOLS + const Glib::RefPtr & MAIN_TAB, + const Glib::RefPtr & MAIN_TOOLS ) { auto menu = Gio::Menu::create(); @@ -48,8 +48,8 @@ Glib::RefPtr Menu::main( } Glib::RefPtr Menu::main_tab( - const Glib::RefPtr MAIN_TAB_PAGE, - const Glib::RefPtr MAIN_TAB_CLOSE + const Glib::RefPtr & MAIN_TAB_PAGE, + const Glib::RefPtr & MAIN_TAB_CLOSE ) { auto menu = Gio::Menu::create(); @@ -72,7 +72,7 @@ Glib::RefPtr Menu::main_tab( } Glib::RefPtr Menu::main_tab_page( - const Glib::RefPtr MAIN_TAB_PAGE_NAVIGATION + const Glib::RefPtr & MAIN_TAB_PAGE_NAVIGATION ) { auto menu = Gio::Menu::create(); @@ -85,7 +85,7 @@ Glib::RefPtr Menu::main_tab_page( } Glib::RefPtr Menu::main_tab_page_navigation( - const Glib::RefPtr MAIN_TAB_PAGE_NAVIGATION_HISTORY + const Glib::RefPtr & MAIN_TAB_PAGE_NAVIGATION_HISTORY ) { auto menu = Gio::Menu::create(); diff --git a/src/app/browser/header/menu.hpp b/src/app/browser/header/menu.hpp index afa374f5..2e171109 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( - const Glib::RefPtr MAIN_TAB, - const Glib::RefPtr MAIN_TOOLS + const Glib::RefPtr & MAIN_TAB, + const Glib::RefPtr & MAIN_TOOLS ); // 2 level static Glib::RefPtr main_tab( - const Glib::RefPtr MAIN_TAB_PAGE, - const 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( - const Glib::RefPtr MAIN_TAB_PAGE_NAVIGATION + const Glib::RefPtr & MAIN_TAB_PAGE_NAVIGATION ); // 4 level static Glib::RefPtr main_tab_page_navigation( - const Glib::RefPtr MAIN_TAB_PAGE_NAVIGATION_HISTORY + const Glib::RefPtr & MAIN_TAB_PAGE_NAVIGATION_HISTORY ); // 5 level