Browse Source

remove extra construction

CPP-GTK4
yggverse 2 months ago
parent
commit
b840dae964
  1. 10
      src/app/browser/main/tab/page/navigation/request.cpp

10
src/app/browser/main/tab/page/navigation/request.cpp

@ -198,11 +198,6 @@ int Request::DB::SESSION::clean( @@ -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( @@ -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,

Loading…
Cancel
Save