summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-12-09 22:37:49 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-09 22:47:12 +0100
commita3f3e85246d8bebdf8a2e0611dce2c4c48d5e7b2 (patch)
treeee14687d62f227565d09a50b0d2cf5a62c8669cc
parent85fd75ad51973f2e53668f56bff19950d6cb647e (diff)
downloadsubsurface-a3f3e85246d8bebdf8a2e0611dce2c4c48d5e7b2.tar.gz
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>
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 9810ab5a8..21451d9e0 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -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];