From d7de166ef0deba55f6bd5bfdbaa654cf4c4b40d1 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 5 Sep 2024 23:10:15 +0300 Subject: [PATCH] update const name --- src/app/browser/main/tab/page/navigation.cpp | 12 ++++++------ src/app/browser/main/tab/page/navigation.hpp | 6 +++--- src/app/browser/main/tab/page/navigation/history.cpp | 12 ++++++------ src/app/browser/main/tab/page/navigation/history.hpp | 6 +++--- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/app/browser/main/tab/page/navigation.cpp b/src/app/browser/main/tab/page/navigation.cpp index 7b1dd886..dd87ef01 100644 --- a/src/app/browser/main/tab/page/navigation.cpp +++ b/src/app/browser/main/tab/page/navigation.cpp @@ -89,11 +89,11 @@ Navigation::Navigation( // Actions void Navigation::history_add( const Glib::ustring & REQUEST, - const bool & FOLLOW + const bool & UPDATE_MEMORY_INDEX ) { navigationHistory->add( REQUEST, - FOLLOW + UPDATE_MEMORY_INDEX ); } @@ -158,11 +158,11 @@ Glib::ustring Navigation::get_request_port() // Actionable getters bool Navigation::try_history_back( Glib::ustring & request, - const bool & FOLLOW + const bool & UPDATE_MEMORY_INDEX ) { navigation::History::Memory match; - if (navigationHistory->try_back(match, FOLLOW)) + if (navigationHistory->try_back(match, UPDATE_MEMORY_INDEX)) { request = match.request; @@ -174,11 +174,11 @@ bool Navigation::try_history_back( bool Navigation::try_history_forward( Glib::ustring & request, - const bool & FOLLOW + const bool & UPDATE_MEMORY_INDEX ) { navigation::History::Memory match; - if (navigationHistory->try_forward(match, FOLLOW)) + if (navigationHistory->try_forward(match, UPDATE_MEMORY_INDEX)) { request = match.request; diff --git a/src/app/browser/main/tab/page/navigation.hpp b/src/app/browser/main/tab/page/navigation.hpp index 3a12dc7d..b1c7dd37 100644 --- a/src/app/browser/main/tab/page/navigation.hpp +++ b/src/app/browser/main/tab/page/navigation.hpp @@ -39,7 +39,7 @@ namespace app::browser::main::tab::page // Actions void history_add( const Glib::ustring & REQUEST, - const bool & FOLLOW + const bool & UPDATE_MEMORY_INDEX ); void refresh(); @@ -61,12 +61,12 @@ namespace app::browser::main::tab::page // Actionable getters bool try_history_back( Glib::ustring & request, - const bool & FOLLOW + const bool & UPDATE_MEMORY_INDEX ); bool try_history_forward( Glib::ustring & request, - const bool & FOLLOW + const bool & UPDATE_MEMORY_INDEX ); }; } diff --git a/src/app/browser/main/tab/page/navigation/history.cpp b/src/app/browser/main/tab/page/navigation/history.cpp index 4190f814..973522b7 100644 --- a/src/app/browser/main/tab/page/navigation/history.cpp +++ b/src/app/browser/main/tab/page/navigation/history.cpp @@ -26,7 +26,7 @@ History::History() // Actions void History::add( const Glib::ustring & REQUEST, - const bool & FOLLOW + const bool & UPDATE_MEMORY_INDEX ) { memory.push_back( { @@ -38,7 +38,7 @@ void History::add( } ); - if (FOLLOW) + if (UPDATE_MEMORY_INDEX) { index = memory.size() - 1; } @@ -66,7 +66,7 @@ void History::refresh() bool History::try_back( Memory & match, - const bool & FOLLOW + const bool & UPDATE_MEMORY_INDEX ) { try { @@ -74,7 +74,7 @@ bool History::try_back( index - 1 ); - if (FOLLOW) + if (UPDATE_MEMORY_INDEX) { index--; } @@ -90,7 +90,7 @@ bool History::try_back( bool History::try_forward( Memory & match, - const bool & FOLLOW + const bool & UPDATE_MEMORY_INDEX ) { try { @@ -98,7 +98,7 @@ bool History::try_forward( index + 1 ); - if (FOLLOW) + if (UPDATE_MEMORY_INDEX) { index++; } diff --git a/src/app/browser/main/tab/page/navigation/history.hpp b/src/app/browser/main/tab/page/navigation/history.hpp index 2f7db2a6..c6c3f4c3 100644 --- a/src/app/browser/main/tab/page/navigation/history.hpp +++ b/src/app/browser/main/tab/page/navigation/history.hpp @@ -42,7 +42,7 @@ namespace app::browser::main::tab::page::navigation // Actions void add( const Glib::ustring & REQUEST, - const bool & FOLLOW + const bool & UPDATE_MEMORY_INDEX ); void refresh(); @@ -51,12 +51,12 @@ namespace app::browser::main::tab::page::navigation bool try_back( Memory & match, - const bool & FOLLOW + const bool & UPDATE_MEMORY_INDEX ); bool try_forward( Memory & match, - const bool & FOLLOW + const bool & UPDATE_MEMORY_INDEX ); }; }