From f959a6627b6a0174da873e067b5f3c0d298e1371 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 6 Sep 2024 03:15:18 +0300 Subject: [PATCH] reorder methods --- .../main/tab/page/navigation/history.cpp | 39 +++++++++---------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/src/app/browser/main/tab/page/navigation/history.cpp b/src/app/browser/main/tab/page/navigation/history.cpp index 973522b7..f700371f 100644 --- a/src/app/browser/main/tab/page/navigation/history.cpp +++ b/src/app/browser/main/tab/page/navigation/history.cpp @@ -24,26 +24,6 @@ History::History() } // Actions -void History::add( - const Glib::ustring & REQUEST, - const bool & UPDATE_MEMORY_INDEX -) { - memory.push_back( - { - REQUEST, - std::time( - nullptr - ), - true - } - ); - - if (UPDATE_MEMORY_INDEX) - { - index = memory.size() - 1; - } -} - void History::refresh() { Memory match; @@ -63,6 +43,25 @@ void History::refresh() ); } +void History::add( + const Glib::ustring & REQUEST, + const bool & UPDATE_MEMORY_INDEX +) { + memory.push_back( + { + REQUEST, + std::time( + nullptr + ), + true + } + ); + + if (UPDATE_MEMORY_INDEX) + { + index = memory.size() - 1; + } +} bool History::try_back( Memory & match,