mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Planner: Fix Warning from Coverity.
Fix an interger overflow warning when parsing setpoints. @bstoeger: In the end it turned out that this parser was only used in one place in the planner UI, and it was simplest to switch this to using `QVariant.toFloat()` in the model itself, which is consistent how the rest of the input values is parsed and validated. Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
cc55c442a3
commit
33bb39f1ca
3 changed files with 22 additions and 148 deletions
|
|
@ -40,8 +40,6 @@ typedef enum {
|
|||
PLAN_ERROR_INAPPROPRIATE_GAS,
|
||||
} planner_error_t;
|
||||
|
||||
extern int validate_gas(const char *text, struct gasmix *gas);
|
||||
extern int validate_po2(const char *text, int *mbar_po2);
|
||||
extern int get_cylinderid_at_time(struct dive *dive, struct divecomputer *dc, duration_t time);
|
||||
extern bool diveplan_empty(struct diveplan *diveplan);
|
||||
extern void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_disclaimer, planner_error_t error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue