mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 16:47:34 +00:00
BrowserSettings: Make default content filtering flag constexpr
And add s_ prefix per coding style guidelines.
This commit is contained in:
parent
ab2574d75f
commit
503e4b805f
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue