mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: remove get_event_mutable()
We can now return mutable/imutable depending on const-ness of the parameter, owing to parameter overloading. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b8c7b173c6
commit
5960fb7340
4 changed files with 5 additions and 6 deletions
|
@ -652,7 +652,7 @@ void update_setpoint_events(const struct dive *dive, struct divecomputer *dc)
|
|||
// an "SP change" event at t=0 is currently our marker for OC vs CCR
|
||||
// this will need to change to a saner setup, but for now we can just
|
||||
// check if such an event is there and adjust it, or add that event
|
||||
ev = get_next_event_mutable(dc->events, "SP change");
|
||||
ev = get_next_event(dc->events, "SP change");
|
||||
if (ev && ev->time.seconds == 0) {
|
||||
ev->value = new_setpoint;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue