Turn variable const

This commit is contained in:
twinaphex 2020-10-15 06:12:26 +02:00
parent f066b944e8
commit e3972aff31
3 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ typedef struct
} gfx_thumbnail_shadow_t;
/* Structure containing all gfx_thumbnail
* global variables */
* variables */
struct gfx_thumbnail_state
{
/* Due to the asynchronous nature of thumbnail

View File

@ -480,8 +480,8 @@ ozone_theme_t *ozone_themes[] = {
};
const unsigned ozone_themes_count = sizeof(ozone_themes) / sizeof(ozone_themes[0]);
/* TODO/FIXME - global variables referenced outside */
unsigned ozone_themes_count = sizeof(ozone_themes) / sizeof(ozone_themes[0]);
unsigned last_color_theme = 0;
bool last_use_preferred_system_color_theme = false;
ozone_theme_t *ozone_default_theme = &ozone_theme_dark; /* also used as a tag for cursor animation */

View File

@ -68,7 +68,7 @@ extern ozone_theme_t ozone_theme_twilight_zone;
extern ozone_theme_t *ozone_themes[];
/* TODO/FIXME - global variables referenced outside */
extern unsigned ozone_themes_count;
extern const unsigned ozone_themes_count;
extern unsigned last_color_theme;
extern bool last_use_preferred_system_color_theme;
extern ozone_theme_t *ozone_default_theme;