mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
units: replace SURFACE_PRESSURE by 1_atm
Moreover, convert diveplan::surface_pressure from int to pressure_t. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
ae81b42fe2
commit
dd5def35f5
11 changed files with 56 additions and 64 deletions
|
@ -609,7 +609,7 @@ void DivePlannerPointsModel::setVpmbConservatism(int level)
|
|||
}
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setSurfacePressure(int pressure)
|
||||
void DivePlannerPointsModel::setSurfacePressure(pressure_t pressure)
|
||||
{
|
||||
diveplan.surface_pressure = pressure;
|
||||
emitDataChanged();
|
||||
|
@ -621,7 +621,7 @@ void DivePlannerPointsModel::setSalinity(int salinity)
|
|||
emitDataChanged();
|
||||
}
|
||||
|
||||
int DivePlannerPointsModel::getSurfacePressure() const
|
||||
pressure_t DivePlannerPointsModel::getSurfacePressure() const
|
||||
{
|
||||
return diveplan.surface_pressure;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue