mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Avoid dangling else warnings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a173a3ce79
commit
bf798390fa
1 changed files with 4 additions and 2 deletions
|
@ -37,16 +37,18 @@ static QString getPressures(struct dive *dive, enum returnPressureSelector ret)
|
||||||
{
|
{
|
||||||
cylinder_t *cyl = &dive->cylinder[0];
|
cylinder_t *cyl = &dive->cylinder[0];
|
||||||
QString fmt;
|
QString fmt;
|
||||||
if (ret == START_PRESSURE)
|
if (ret == START_PRESSURE) {
|
||||||
if (cyl->start.mbar)
|
if (cyl->start.mbar)
|
||||||
fmt = get_pressure_string(cyl->start, true);
|
fmt = get_pressure_string(cyl->start, true);
|
||||||
else if (cyl->sample_start.mbar)
|
else if (cyl->sample_start.mbar)
|
||||||
fmt = get_pressure_string(cyl->sample_start, true);
|
fmt = get_pressure_string(cyl->sample_start, true);
|
||||||
if (ret == END_PRESSURE)
|
}
|
||||||
|
if (ret == END_PRESSURE) {
|
||||||
if (cyl->end.mbar)
|
if (cyl->end.mbar)
|
||||||
fmt = get_pressure_string(cyl->end, true);
|
fmt = get_pressure_string(cyl->end, true);
|
||||||
else if(cyl->sample_end.mbar)
|
else if(cyl->sample_end.mbar)
|
||||||
fmt = get_pressure_string(cyl->sample_end, true);
|
fmt = get_pressure_string(cyl->sample_end, true);
|
||||||
|
}
|
||||||
return fmt;
|
return fmt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue