1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

Everywhere: Stop using NonnullOwnPtrVector

Same as NonnullRefPtrVector: weird semantics, questionable benefits.
This commit is contained in:
Andreas Kling 2023-03-06 17:16:25 +01:00
parent 689ca370d4
commit 359d6e7b0b
111 changed files with 517 additions and 503 deletions

View file

@ -456,21 +456,21 @@ void BrowserWindow::open_previous_tab()
void BrowserWindow::enable_auto_color_scheme()
{
for (auto& tab : m_tabs) {
tab.view().set_preferred_color_scheme(Web::CSS::PreferredColorScheme::Auto);
tab->view().set_preferred_color_scheme(Web::CSS::PreferredColorScheme::Auto);
}
}
void BrowserWindow::enable_light_color_scheme()
{
for (auto& tab : m_tabs) {
tab.view().set_preferred_color_scheme(Web::CSS::PreferredColorScheme::Light);
tab->view().set_preferred_color_scheme(Web::CSS::PreferredColorScheme::Light);
}
}
void BrowserWindow::enable_dark_color_scheme()
{
for (auto& tab : m_tabs) {
tab.view().set_preferred_color_scheme(Web::CSS::PreferredColorScheme::Dark);
tab->view().set_preferred_color_scheme(Web::CSS::PreferredColorScheme::Dark);
}
}