aboutsummaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt
diff options
context:
space:
mode:
Diffstat (limited to 'core/subsurface-qt')
-rw-r--r--core/subsurface-qt/DiveObjectHelper.cpp6
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;