@@ -68,14 +68,14 @@ static Array<ConfigVariableDefinition, static_cast<size_t>(ConfigVariableID::Cou
6868 .title = " Show WebContent process ID in tab titles" sv,
6969 .description = " Append the active WebContent process ID to each tab title and tooltip." sv,
7070 .default_value = false ,
71- .array_element_type = { },
71+ .array_element_type = {},
7272 },
7373 {
7474 .id = ConfigVariableID::ContentBlockerListPaths,
7575 .name = " content_blocking.list_paths" sv,
7676 .title = " Content blocker list paths" sv,
7777 .description = " Load content blocker lists from these filesystem paths on startup, in order." sv,
78- .default_value = JsonArray { },
78+ .default_value = JsonArray {},
7979 .array_element_type = JsonValue::Type::String,
8080 },
8181} };
@@ -92,7 +92,7 @@ Optional<ConfigVariableID> config_variable_id_from_name(StringView name)
9292 return variable.id ;
9393 }
9494
95- return { };
95+ return {};
9696}
9797
9898static ConfigVariableDefinition const & config_variable_definition (ConfigVariableID id)
@@ -403,7 +403,7 @@ void Settings::set_default_zoom_level_factor(double zoom_level)
403403Optional<double > Settings::zoom_for_host (StringView host) const
404404{
405405 if (host.is_empty ())
406- return { };
406+ return {};
407407 return m_zoom_per_host.get (host);
408408}
409409
@@ -459,7 +459,7 @@ void Settings::set_languages(Vector<String> languages)
459459BrowsingBehavior Settings::parse_browsing_behavior (JsonValue const & settings)
460460{
461461 if (!settings.is_object ())
462- return { };
462+ return {};
463463
464464 BrowsingBehavior browsing_behavior;
465465
@@ -496,16 +496,16 @@ void Settings::set_search_engine(Optional<StringView> search_engine_name)
496496Optional<SearchEngine> Settings::parse_custom_search_engine (JsonValue const & search_engine)
497497{
498498 if (!search_engine.is_object ())
499- return { };
499+ return {};
500500
501501 auto name = search_engine.as_object ().get_string (SEARCH_ENGINE_NAME_KEY );
502502 auto url = search_engine.as_object ().get_string (SEARCH_ENGINE_URL_KEY );
503503 if (!name.has_value () || !url.has_value ())
504- return { };
504+ return {};
505505
506506 auto parsed_url = URL::Parser::basic_parse (*url);
507507 if (!parsed_url.has_value ())
508- return { };
508+ return {};
509509
510510 return SearchEngine { .name = name.release_value (), .query_url = url.release_value () };
511511}
@@ -546,7 +546,7 @@ Optional<SearchEngine> Settings::find_search_engine_by_name(StringView name)
546546 if (auto result = find_value (m_custom_search_engines, comparator); result.has_value ())
547547 return result.copy ();
548548
549- return { };
549+ return {};
550550}
551551
552552void Settings::set_autocomplete_engine (Optional<StringView> autocomplete_engine_name)
@@ -605,7 +605,7 @@ void Settings::remove_all_autoplay_site_filters()
605605BrowsingDataSettings Settings::parse_browsing_data_settings (JsonValue const & settings)
606606{
607607 if (!settings.is_object ())
608- return { };
608+ return {};
609609
610610 BrowsingDataSettings browsing_data_settings;
611611
@@ -638,13 +638,13 @@ void Settings::set_global_privacy_control(GlobalPrivacyControl global_privacy_co
638638DNSSettings Settings::parse_dns_settings (JsonValue const & dns_settings)
639639{
640640 if (!dns_settings.is_object ())
641- return SystemDNS { };
641+ return SystemDNS {};
642642
643643 auto const & dns_settings_object = dns_settings.as_object ();
644644
645645 if (auto mode = dns_settings_object.get_string (" mode" sv); mode.has_value ()) {
646646 if (*mode == " system" sv)
647- return SystemDNS { };
647+ return SystemDNS {};
648648
649649 if (*mode == " custom" sv) {
650650 auto server = dns_settings_object.get_string (" server" sv);
@@ -662,7 +662,7 @@ DNSSettings Settings::parse_dns_settings(JsonValue const& dns_settings)
662662 }
663663
664664 dbgln (" Invalid DNS settings in parse_dns_settings, falling back to system DNS" );
665- return SystemDNS { };
665+ return SystemDNS {};
666666}
667667
668668void Settings::set_dns_settings (DNSSettings const & dns_settings, bool override_by_command_line)
@@ -792,12 +792,12 @@ void Settings::remove_observer(Badge<SettingsObserver>, SettingsObserver& observ
792792
793793SettingsObserver::SettingsObserver ()
794794{
795- Settings::add_observer ({ }, *this );
795+ Settings::add_observer ({}, *this );
796796}
797797
798798SettingsObserver::~SettingsObserver ()
799799{
800- Settings::remove_observer ({ }, *this );
800+ Settings::remove_observer ({}, *this );
801801}
802802
803803SiteSetting::SiteSetting ()
@@ -814,7 +814,7 @@ ErrorOr<void> encode(Encoder& encoder, WebView::BrowsingBehavior const& browsing
814814 TRY (encoder.encode (browsing_behavior.enable_autoscroll ));
815815 TRY (encoder.encode (browsing_behavior.enable_primary_paste ));
816816
817- return { };
817+ return {};
818818}
819819
820820template <>
0 commit comments