mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Turn dive_list_changed into bool
All callers of mark_divelist_changed() were passing a bool. Therefore, let mark_divelist_changed() take a bool and make dive_list_changed a bool. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
47bf5cf5e0
commit
a17d1c7b85
2 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@
|
|||
#include "qthelperfromc.h"
|
||||
#include "git-access.h"
|
||||
|
||||
static short dive_list_changed = false;
|
||||
static bool dive_list_changed = false;
|
||||
|
||||
short autogroup = false;
|
||||
|
||||
|
@ -1201,7 +1201,7 @@ void combine_trips(struct dive_trip *trip_a, struct dive_trip *trip_b)
|
|||
add_dive_to_trip(trip_b->dives, trip_a);
|
||||
}
|
||||
|
||||
void mark_divelist_changed(int changed)
|
||||
void mark_divelist_changed(bool changed)
|
||||
{
|
||||
dive_list_changed = changed;
|
||||
updateWindowTitle();
|
||||
|
|
|
@ -12,7 +12,7 @@ extern "C" {
|
|||
struct dive;
|
||||
|
||||
extern void update_cylinder_related_info(struct dive *);
|
||||
extern void mark_divelist_changed(int);
|
||||
extern void mark_divelist_changed(bool);
|
||||
extern int unsaved_changes(void);
|
||||
extern void remove_autogen_trips(void);
|
||||
extern int init_decompression(struct deco_state *ds, struct dive *dive);
|
||||
|
|
Loading…
Add table
Reference in a new issue