diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-09-04 10:27:56 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-09-04 10:27:56 -0700 |
commit | 80eafb8db78526ea2f18295aa435e6d251b67648 (patch) | |
tree | 8a721b3541119b793eea77e46fbbb089286bf606 /core/subsurface-qt/DiveObjectHelper.cpp | |
parent | 3affaedb38da49ab6b2dc29d241d4549c5117c8f (diff) | |
download | subsurface-80eafb8db78526ea2f18295aa435e6d251b67648.tar.gz |
Fix some warnings
At least the warnings about size potentially being uninitialized seem correct
and valid.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.cpp')
-rw-r--r-- | core/subsurface-qt/DiveObjectHelper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp index ab95b0c57..37f954cb7 100644 --- a/core/subsurface-qt/DiveObjectHelper.cpp +++ b/core/subsurface-qt/DiveObjectHelper.cpp @@ -67,7 +67,7 @@ DiveObjectHelper::DiveObjectHelper(struct dive *d) : DiveObjectHelper::~DiveObjectHelper() { while (!m_cyls.isEmpty()) - delete m_cyls.takeFirst(); + delete m_cyls.takeFirst(); } int DiveObjectHelper::number() const @@ -267,8 +267,8 @@ QStringList DiveObjectHelper::cylinderList() const } } - for (i = 0; i < sizeof(tank_info) && tank_info[i].name != NULL; i++) { - QString cyl = tank_info[i].name; + for (unsigned long ti = 0; ti < sizeof(tank_info) && tank_info[ti].name != NULL; ti++) { + QString cyl = tank_info[ti].name; if (cyl == EMPTY_DIVE_STRING) continue; cylinders << cyl; |