From e3c721597d86d36db7b3f7ddd76d977e253bfc2a Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 11 Sep 2024 00:32:30 +0300 Subject: [PATCH] rename method --- src/app/browser/main/tab.cpp | 10 +++++----- src/app/browser/main/tab.hpp | 4 ++-- src/app/browser/main/tab/page.cpp | 2 +- src/app/browser/main/tab/page.hpp | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/browser/main/tab.cpp b/src/app/browser/main/tab.cpp index 119581fc..0c0a1cac 100644 --- a/src/app/browser/main/tab.cpp +++ b/src/app/browser/main/tab.cpp @@ -92,9 +92,9 @@ int Tab::restore() return PREPARE_STATUS; } -void Tab::clear() // @TODO menu action? +void Tab::clean() // @TODO menu action? { - DB::APP_BROWSER_MAIN_TAB__SESSION::clear( + DB::APP_BROWSER_MAIN_TAB__SESSION::clean( db ); @@ -106,7 +106,7 @@ void Tab::save() char * error; // @TODO // Delete previous data - DB::APP_BROWSER_MAIN_TAB__SESSION::clear( + DB::APP_BROWSER_MAIN_TAB__SESSION::clean( db ); @@ -355,7 +355,7 @@ int Tab::DB::APP_BROWSER_MAIN_TAB__SESSION::init( ); } -int Tab::DB::APP_BROWSER_MAIN_TAB__SESSION::clear( +int Tab::DB::APP_BROWSER_MAIN_TAB__SESSION::clean( sqlite3 * db ) { char * error; // @TODO @@ -396,7 +396,7 @@ int Tab::DB::APP_BROWSER_MAIN_TAB__SESSION::clear( ); // Delegate cleanup childs - tab::Page::DB::APP_BROWSER_MAIN_TAB_PAGE__SESSION::clear( + tab::Page::DB::APP_BROWSER_MAIN_TAB_PAGE__SESSION::clean( db, APP_BROWSER_MAIN_TAB__SESSION_ID ); diff --git a/src/app/browser/main/tab.hpp b/src/app/browser/main/tab.hpp index 55061612..11dcdadc 100644 --- a/src/app/browser/main/tab.hpp +++ b/src/app/browser/main/tab.hpp @@ -37,7 +37,7 @@ namespace app::browser::main sqlite3 * db ); - static int clear( + static int clean( sqlite3 * db ); @@ -113,7 +113,7 @@ namespace app::browser::main int restore(); - void clear(); + void clean(); void save(); diff --git a/src/app/browser/main/tab/page.cpp b/src/app/browser/main/tab/page.cpp index 2a6be7e8..b0afda3d 100644 --- a/src/app/browser/main/tab/page.cpp +++ b/src/app/browser/main/tab/page.cpp @@ -387,7 +387,7 @@ int Page::DB::APP_BROWSER_MAIN_TAB_PAGE__SESSION::init( ); } -int Page::DB::APP_BROWSER_MAIN_TAB_PAGE__SESSION::clear( +int Page::DB::APP_BROWSER_MAIN_TAB_PAGE__SESSION::clean( sqlite3 * db, const int & DB__APP_BROWSER_MAIN_TAB__SESSION_ID ) { diff --git a/src/app/browser/main/tab/page.hpp b/src/app/browser/main/tab/page.hpp index c644d277..b48889fc 100644 --- a/src/app/browser/main/tab/page.hpp +++ b/src/app/browser/main/tab/page.hpp @@ -52,7 +52,7 @@ namespace app::browser::main::tab sqlite3 * db ); - static int clear( + static int clean( sqlite3 * db, const int & DB__APP_BROWSER_MAIN_TAB__SESSION_ID );