remove extra arguments

This commit is contained in:
yggverse 2024-09-09 22:23:23 +03:00
parent 7a522cb1e1
commit 618d8bd530
3 changed files with 17 additions and 27 deletions

View file

@ -47,11 +47,8 @@ void Main::refresh()
void Main::tab_append() void Main::tab_append()
{ {
const unsigned char * REQUEST; // @TODO mainTab->set_current_page(
mainTab->append()
mainTab->append(
REQUEST,
true
); );
}; };

View file

@ -68,12 +68,17 @@ Tab::Tab(
{ {
while (sqlite3_step(statement) == SQLITE_ROW) while (sqlite3_step(statement) == SQLITE_ROW)
{ {
append( const int PAGE_NUMBER = append();
::sqlite3_column_text(
statement, /* @TODO set request
DB::APP_BROWSER_MAIN_TAB::REQUEST ::sqlite3_column_text(
), statement,
true DB::APP_BROWSER_MAIN_TAB::REQUEST
);
*/
set_current_page(
PAGE_NUMBER
); );
} }
} }
@ -167,10 +172,8 @@ void Tab::refresh(
); );
} }
int Tab::append( int Tab::append()
const unsigned char * REQUEST, {
const bool & FOCUS
) {
const auto TAB_PAGE = new tab::Page( const auto TAB_PAGE = new tab::Page(
action__refresh, action__refresh,
action__tab_page_navigation_history_back, action__tab_page_navigation_history_back,
@ -192,13 +195,6 @@ int Tab::append(
REORDERABLE REORDERABLE
); );
if (FOCUS)
{
set_current_page(
PAGE_NUMBER
);
}
return PAGE_NUMBER; return PAGE_NUMBER;
}; };

View file

@ -66,13 +66,10 @@ namespace app::browser::main
// Actions // Actions
void refresh( void refresh(
const int & PAGE_NUMBER // @TODO const int & PAGE_NUMBER
); );
int append( int append();
const unsigned char * REQUEST,
const bool & FOCUS
);
void close( void close(
const int & PAGE_NUMBER const int & PAGE_NUMBER