mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use implicit zero initialize for the whole array.
Clang yelled about it, and it looks prettier. It also felt kinda strange to explicit initialize the first element to zero and the rest to zero implicit. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
85fd75ad51
commit
a3f3e85246
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,7 @@ void MainTab::updateDiveInfo(int dive)
|
|||
ui.otuText->setText(QString("%1").arg(d->otu));
|
||||
ui.waterTemperatureText->setText(get_temperature_string(d->watertemp, TRUE));
|
||||
ui.airTemperatureText->setText(get_temperature_string(d->airtemp, TRUE));
|
||||
volume_t gases[MAX_CYLINDERS] = { 0 };
|
||||
volume_t gases[MAX_CYLINDERS] = {};
|
||||
get_gas_used(d, gases);
|
||||
QString volumes = get_volume_string(gases[0], TRUE);
|
||||
int mean[MAX_CYLINDERS], duration[MAX_CYLINDERS];
|
||||
|
|
Loading…
Add table
Reference in a new issue