mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: turn M_OR_FT macro into a function
No point in this being a macro. Make it return a depth_t - it was unclear that this returns a depth in mm. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
0e77dd9a68
commit
bd2f7e72f1
11 changed files with 105 additions and 97 deletions
|
|
@ -65,7 +65,7 @@ public:
|
|||
struct deco_state final_deco_state;
|
||||
|
||||
void loadFromDive(dive *d, int dcNr);
|
||||
void addStop(int millimeters, int seconds);
|
||||
void addStop(depth_t depth, int seconds);
|
||||
void cylindersChanged();
|
||||
public
|
||||
slots:
|
||||
|
|
@ -120,7 +120,7 @@ signals:
|
|||
private:
|
||||
explicit DivePlannerPointsModel(QObject *parent = 0);
|
||||
void clear();
|
||||
int addStop(int millimeters, int seconds, int cylinderid_in, int ccpoint, bool entered, enum divemode_t);
|
||||
int addStop(depth_t depth, int seconds, int cylinderid_in, int ccpoint, bool entered, enum divemode_t);
|
||||
void removePoints(const std::vector<int> &rows);
|
||||
void setupStartTime();
|
||||
void setupCylinders();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue