mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Change prefs.show_units_table to bool
Bool is the correct choice for this option. int was used before because it was not clear to me how and if I can use bool in this C file. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
178dcbc0c6
commit
bd88306722
4 changed files with 15 additions and 13 deletions
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#else
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
#define O2_IN_AIR 209 // permille
|
||||
|
|
@ -263,7 +265,7 @@ struct units {
|
|||
MINUTES_ONLY,
|
||||
ALWAYS_HOURS
|
||||
} duration_units;
|
||||
int show_units_table;
|
||||
bool show_units_table;
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue