aboutsummaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-07-18 08:01:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-18 09:04:47 -0700
commit8ff7314b219d2eab85f7777e470091a76cf25107 (patch)
tree0f77da8b2d638f7b64a3bdc6caa8f2b274395472 /core/dive.h
parent3a933637dab9aa4fee55198623a6f9235727cfde (diff)
downloadsubsurface-8ff7314b219d2eab85f7777e470091a76cf25107.tar.gz
Cleanup: rename trip->index to trip->saved
The index-field was misused by the IO routines to mark which dives had been saved. Somewhat questionable, but let's at least name the field accordingly. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h
index 8458a3ae3..1b58eef4c 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -294,7 +294,8 @@ typedef struct dive_trip
char *notes;
struct dive *dives;
int nrdives;
- int index;
+ /* Used by the io-routines to mark trips that have already been written. */
+ bool saved;
unsigned expanded : 1, selected : 1, autogen : 1, fixup : 1;
struct dive_trip *next;
} dive_trip_t;