From 5065dd23d610a1e02e78630d77b44c9a805c7704 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 5 Sep 2024 04:57:42 +0300 Subject: [PATCH] make const arguments linked --- src/app/browser/header/menu.cpp | 12 ++++++------ src/app/browser/header/menu.hpp | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) 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