aboutsummaryrefslogtreecommitdiffstats
path: root/core/divelist.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2017-12-11 22:23:52 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-01-04 08:21:43 -0800
commita17d1c7b8510996b77242bfa8c656f90bf5150e1 (patch)
treeffc364a1442d776164fb790bc7b0bc8b76a39a46 /core/divelist.c
parent47bf5cf5e002ada21b03892d5229882db109015f (diff)
downloadsubsurface-a17d1c7b8510996b77242bfa8c656f90bf5150e1.tar.gz
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>
Diffstat (limited to 'core/divelist.c')
-rw-r--r--core/divelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/divelist.c b/core/divelist.c
index 0ae33153e..7712968ff 100644
--- a/core/divelist.c
+++ b/core/divelist.c
@@ -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();