Use MAX_CYLINDERS consistently

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
Stefan Fuchs 2017-11-27 14:45:02 +01:00 committed by Lubomir I. Ivanov
parent b17f1e2d30
commit 8212a923b2
2 changed files with 2 additions and 2 deletions

View file

@ -106,7 +106,7 @@ void TabDiveStatistics::updateData()
QString gasUsedString;
volume_t vol;
selectedDivesGasUsed(gasUsed);
for (int j = 0; j < 20; j++) {
for (int j = 0; j < MAX_CYLINDERS; j++) {
if (gasUsed.isEmpty())
break;
QPair<QString, int> gasPair = gasUsed.last();

View file

@ -569,7 +569,7 @@ void MainTab::updateDiveInfo(bool clear)
QString gasUsedString;
volume_t vol;
selectedDivesGasUsed(gasUsed);
for (int j = 0; j < 20; j++) {
for (int j = 0; j < MAX_CYLINDERS; j++) {
if (gasUsed.isEmpty())
break;
QPair<QString, int> gasPair = gasUsed.last();