Ladybird: Pass QIcon by reference in tab_favicon_changed

This commit is contained in:
Cameron Youell 2023-05-29 19:05:40 +10:00 committed by Sam Atkins
parent 6e40e8316e
commit 0da5af0eff
Notes: sideshowbarker 2024-07-17 09:49:33 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -538,7 +538,7 @@ void BrowserWindow::tab_title_changed(int index, QString const& title)
setWindowTitle(QString("%1 - Ladybird").arg(title)); setWindowTitle(QString("%1 - Ladybird").arg(title));
} }
void BrowserWindow::tab_favicon_changed(int index, QIcon icon) void BrowserWindow::tab_favicon_changed(int index, QIcon const& icon)
{ {
m_tabs_container->setTabIcon(index, icon); m_tabs_container->setTabIcon(index, icon);
} }

View file

@ -71,7 +71,7 @@ public:
public slots: public slots:
void tab_title_changed(int index, QString const&); void tab_title_changed(int index, QString const&);
void tab_favicon_changed(int index, QIcon icon); void tab_favicon_changed(int index, QIcon const& icon);
Tab& new_tab(QString const&, Web::HTML::ActivateTab); Tab& new_tab(QString const&, Web::HTML::ActivateTab);
void activate_tab(int index); void activate_tab(int index);
void close_tab(int index); void close_tab(int index);