make default const static

This commit is contained in:
yggverse 2024-09-16 11:50:20 +03:00
parent d139fc51e3
commit 0a7c3a6055
8 changed files with 15 additions and 15 deletions

View file

@ -71,9 +71,9 @@ namespace app
app::browser::Main * browserMain;
// Defaults
const int WIDTH = 640;
const int HEIGHT = 480;
const bool IS_FULLSCREEN = false;
static const int WIDTH = 640;
static const int HEIGHT = 480;
static const bool IS_FULLSCREEN = false;
/*
* Browser class API

View file

@ -24,7 +24,7 @@ namespace app::browser
header::Tab * headerTab;
// Defaults
const bool SHOW_TITLE_BUTTONS = true;
static const bool SHOW_TITLE_BUTTONS = true;
public:

View file

@ -66,7 +66,7 @@ namespace app::browser
main::Tab * mainTab;
// Defaults
const bool HOMOGENEOUS = true;
static const bool HOMOGENEOUS = true;
/*
* Main class API

View file

@ -75,8 +75,8 @@ namespace app::browser::main
action__update;
// Defaults
const bool REORDERABLE = true;
const bool SCROLLABLE = true;
static const bool REORDERABLE = true;
static const bool SCROLLABLE = true;
/*
* Tab class API

View file

@ -64,7 +64,7 @@ namespace app::browser::main::tab
Glib::RefPtr<Gio::SimpleAction> action__tab_close;
// Defaults
int WIDTH_CHARS = 16;
static const int WIDTH_CHARS = 16;
/*
* Class API

View file

@ -72,8 +72,8 @@ namespace app::browser::main::tab::page::content::text::gemini
Glib::RefPtr<Gio::SimpleAction> action__open_link_variant;
// Defaults
const int MARGIN_START = 8;
const int MARGIN_END = 8;
static const int MARGIN_START = 8;
static const int MARGIN_END = 8;
/*
* Reader class API

View file

@ -72,8 +72,8 @@ namespace app::browser::main::tab::page
navigation::Request * navigationRequest;
// Defaults
const int SPACING = 8;
const int MARGIN = 8;
static const int SPACING = 8;
static const int MARGIN = 8;
/*
* Class API

View file

@ -69,9 +69,9 @@ namespace app::browser::main::tab::page::navigation
sigc::connection progress_connection;
// Defaults
const bool HEXPAND = true;
const double PROGRESS_PULSE_STEP = .1;
const int PROGRESS_ANIMATION_TIME = 10;
static const bool HEXPAND = true;
static const int PROGRESS_ANIMATION_TIME = 10;
const double PROGRESS_PULSE_STEP = .1; // @TODO static?
/*
* Class API