aboutsummaryrefslogtreecommitdiffstats
path: root/core/pref.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-07-28 21:18:54 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-02 08:59:56 -0700
commit470b41e595419a01127f98845a59c5d65a41c73d (patch)
treee5088b3f3f17b5c4c9b348ade0128d2e3a1a8a7b /core/pref.h
parent90c7be07727e719473cb975987aaf4b71807ea29 (diff)
downloadsubsurface-470b41e595419a01127f98845a59c5d65a41c73d.tar.gz
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>
Diffstat (limited to 'core/pref.h')
-rw-r--r--core/pref.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/pref.h b/core/pref.h
index a037a2da5..f317a795c 100644
--- a/core/pref.h
+++ b/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,