From 503e4b805f26982008b3cef9080fbbe9208e8f29 Mon Sep 17 00:00:00 2001 From: Maciej Date: Sat, 2 Jul 2022 22:59:23 +0200 Subject: [PATCH] BrowserSettings: Make default content filtering flag constexpr And add s_ prefix per coding style guidelines. --- .../BrowserSettings/ContentFilterSettingsWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Applications/BrowserSettings/ContentFilterSettingsWidget.cpp b/Userland/Applications/BrowserSettings/ContentFilterSettingsWidget.cpp index 5e64826fea..4fa8e7e677 100644 --- a/Userland/Applications/BrowserSettings/ContentFilterSettingsWidget.cpp +++ b/Userland/Applications/BrowserSettings/ContentFilterSettingsWidget.cpp @@ -18,7 +18,7 @@ #include #include -static bool default_enable_content_filtering = true; +static constexpr bool s_default_enable_content_filtering = true; static String filter_list_file_path() { @@ -157,5 +157,5 @@ void ContentFilterSettingsWidget::apply_settings() void ContentFilterSettingsWidget::reset_default_values() { m_domain_list_model->reset_default_values(); - m_enable_content_filtering_checkbox->set_checked(default_enable_content_filtering); + m_enable_content_filtering_checkbox->set_checked(s_default_enable_content_filtering); }