mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: change type of unit_system to enum
unit_system is an enum, but was declared as short, correct declaration. Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
90c7be0772
commit
470b41e595
1 changed files with 9 additions and 9 deletions
18
core/pref.h
18
core/pref.h
|
@ -59,6 +59,12 @@ typedef struct {
|
||||||
int download_mode;
|
int download_mode;
|
||||||
} dive_computer_prefs_t;
|
} dive_computer_prefs_t;
|
||||||
|
|
||||||
|
enum unit_system_values {
|
||||||
|
METRIC,
|
||||||
|
IMPERIAL,
|
||||||
|
PERSONALIZE
|
||||||
|
};
|
||||||
|
|
||||||
// ********** PREFERENCES **********
|
// ********** PREFERENCES **********
|
||||||
// This struct is kept global for all of ssrf
|
// This struct is kept global for all of ssrf
|
||||||
// most of the fields are loaded from git as
|
// most of the fields are loaded from git as
|
||||||
|
@ -195,20 +201,14 @@ struct preferences {
|
||||||
bool zoomed_plot;
|
bool zoomed_plot;
|
||||||
|
|
||||||
// ********** Units **********
|
// ********** Units **********
|
||||||
bool coordinates_traditional;
|
bool coordinates_traditional;
|
||||||
short unit_system;
|
enum unit_system_values unit_system;
|
||||||
struct units units;
|
struct units units;
|
||||||
|
|
||||||
// ********** UpdateManager **********
|
// ********** UpdateManager **********
|
||||||
update_manager_prefs_t update_manager;
|
update_manager_prefs_t update_manager;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum unit_system_values {
|
|
||||||
METRIC,
|
|
||||||
IMPERIAL,
|
|
||||||
PERSONALIZE
|
|
||||||
};
|
|
||||||
|
|
||||||
enum def_file_behavior {
|
enum def_file_behavior {
|
||||||
UNDEFINED_DEFAULT_FILE,
|
UNDEFINED_DEFAULT_FILE,
|
||||||
LOCAL_DEFAULT_FILE,
|
LOCAL_DEFAULT_FILE,
|
||||||
|
|
Loading…
Add table
Reference in a new issue