diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-11 17:32:44 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-20 10:01:50 -0800 |
commit | 84f48b729085e1dd4356b4300c9498361fbe81d1 (patch) | |
tree | a5d346646e7a65a57f2408735e820b09028b32c3 /core/profile.h | |
parent | 8d423359a54aa181e93fd4124c537f0fa567663f (diff) | |
download | subsurface-84f48b729085e1dd4356b4300c9498361fbe81d1.tar.gz |
cleanup: constify create_plot_info_new()
This only read accesses the dive and constructs a plot-info
structure. Make the dive parameter const.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/profile.h')
-rw-r--r-- | core/profile.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/profile.h b/core/profile.h index 67e7791fc..d3ae43a43 100644 --- a/core/profile.h +++ b/core/profile.h @@ -83,7 +83,7 @@ struct plot_data { extern void compare_samples(const struct dive *d, const struct plot_info *pi, int idx1, int idx2, char *buf, int bufsize, bool sum); extern void init_plot_info(struct plot_info *pi); /* when planner_dc is non-null, this is called in planner mode. */ -extern void create_plot_info_new(struct dive *dive, struct divecomputer *dc, struct plot_info *pi, bool fast, const struct deco_state *planner_ds); +extern void create_plot_info_new(const struct dive *dive, const struct divecomputer *dc, struct plot_info *pi, bool fast, const struct deco_state *planner_ds); extern int get_plot_details_new(const struct dive *d, const struct plot_info *pi, int time, struct membuffer *); extern void free_plot_info_data(struct plot_info *pi); |