From b840dae9640de489ffde4daba4d50202e4200760 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 11 Sep 2024 01:53:16 +0300 Subject: [PATCH] remove extra construction --- src/app/browser/main/tab/page/navigation/request.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/app/browser/main/tab/page/navigation/request.cpp b/src/app/browser/main/tab/page/navigation/request.cpp index a4ec4918..6ee7441b 100644 --- a/src/app/browser/main/tab/page/navigation/request.cpp +++ b/src/app/browser/main/tab/page/navigation/request.cpp @@ -198,11 +198,6 @@ int Request::DB::SESSION::clean( { while (::sqlite3_step(statement) == SQLITE_ROW) { - const int APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION_REQUEST__SESSION_ID = sqlite3_column_int( - statement, - DB::SESSION::ID - ); - // Delete record const int EXEC_STATUS = sqlite3_exec( db, @@ -210,7 +205,10 @@ int Request::DB::SESSION::clean( R"SQL( DELETE FROM `app_browser_main_tab_page_navigation_request__session` WHERE `id` = %d )SQL", - APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION_REQUEST__SESSION_ID + sqlite3_column_int( + statement, + DB::SESSION::ID + ) ).c_str(), nullptr, nullptr,