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;
|
||||
} dive_computer_prefs_t;
|
||||
|
||||
enum unit_system_values {
|
||||
METRIC,
|
||||
IMPERIAL,
|
||||
PERSONALIZE
|
||||
};
|
||||
|
||||
// ********** PREFERENCES **********
|
||||
// This struct is kept global for all of ssrf
|
||||
// most of the fields are loaded from git as
|
||||
|
@ -195,20 +201,14 @@ struct preferences {
|
|||
bool zoomed_plot;
|
||||
|
||||
// ********** Units **********
|
||||
bool coordinates_traditional;
|
||||
short unit_system;
|
||||
struct units units;
|
||||
bool coordinates_traditional;
|
||||
enum unit_system_values unit_system;
|
||||
struct units units;
|
||||
|
||||
// ********** UpdateManager **********
|
||||
update_manager_prefs_t update_manager;
|
||||
};
|
||||
|
||||
enum unit_system_values {
|
||||
METRIC,
|
||||
IMPERIAL,
|
||||
PERSONALIZE
|
||||
};
|
||||
|
||||
enum def_file_behavior {
|
||||
UNDEFINED_DEFAULT_FILE,
|
||||
LOCAL_DEFAULT_FILE,
|
||||
|
|
Loading…
Add table
Reference in a new issue