From 8b55faef3540dd7f5bc480d76c4bae33d6c1cf65 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 27 Aug 2024 13:53:41 +0300 Subject: [PATCH] use linked page_number arguments --- src/app/browser/main/tab.cpp | 8 ++++---- src/app/browser/main/tab.hpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/app/browser/main/tab.cpp b/src/app/browser/main/tab.cpp index 5cdcb528..40f06a76 100644 --- a/src/app/browser/main/tab.cpp +++ b/src/app/browser/main/tab.cpp @@ -31,7 +31,7 @@ Tab::~Tab() = default; // Getters Glib::ustring Tab::get_label_text( - int page_number + const int & page_number ) { auto pageWidget = get_nth_page( page_number @@ -75,7 +75,7 @@ void Tab::append( }; void Tab::close( - int page_number + const int & page_number ) { remove_page( page_number @@ -102,7 +102,7 @@ void Tab::close_all() } void Tab::update( - int page_number + const int & page_number ) { auto pageWidget = get_nth_page( page_number @@ -118,7 +118,7 @@ void Tab::update( } // @TODO void Tab::refresh( - int page_number + const int & page_number ) { auto pageWidget = get_nth_page( page_number diff --git a/src/app/browser/main/tab.hpp b/src/app/browser/main/tab.hpp index 6f751fef..44c3d9a2 100644 --- a/src/app/browser/main/tab.hpp +++ b/src/app/browser/main/tab.hpp @@ -19,7 +19,7 @@ namespace app::browser::main ~Tab(); Glib::ustring get_label_text( - int page_number + const int & page_number ); void append( @@ -28,7 +28,7 @@ namespace app::browser::main ); void close( - int page_number + const int & page_number ); void close_left(); @@ -36,11 +36,11 @@ namespace app::browser::main void close_all(); void refresh( - int page_number + const int & page_number ); void update( - int page_number + const int & page_number ); }; }