summaryrefslogtreecommitdiff
path: root/Userland/Applications/BrowserSettings
diff options
context:
space:
mode:
authorMaciej <sppmacd@pm.me>2022-07-02 22:59:23 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-03 13:19:52 +0200
commit503e4b805f26982008b3cef9080fbbe9208e8f29 (patch)
tree84f861d0416862acd93052f29703535f1972f865 /Userland/Applications/BrowserSettings
parentab2574d75f43ac2600a55f9610ec2009e07e4a93 (diff)
downloadserenity-503e4b805f26982008b3cef9080fbbe9208e8f29.zip
BrowserSettings: Make default content filtering flag constexpr
And add s_ prefix per coding style guidelines.
Diffstat (limited to 'Userland/Applications/BrowserSettings')
-rw-r--r--Userland/Applications/BrowserSettings/ContentFilterSettingsWidget.cpp4
1 files 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 <LibGUI/ListView.h>
#include <LibGUI/Menu.h>
-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);
}