use qMakePair helper instead of QPair<int,int> and such.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1a933e7e19
commit
09096f9af4
@ -1329,7 +1329,7 @@ QVector<QPair<int, int> > DivePlannerPointsModel::collectGases(struct dive *d)
|
||||
for (int i = 0; i < MAX_CYLINDERS; i++) {
|
||||
cylinder_t *cyl = &d->cylinder[i];
|
||||
if (!cylinder_nodata(cyl))
|
||||
l.push_back(QPair<int, int>(cyl->gasmix.o2.permille, cyl->gasmix.he.permille));
|
||||
l.push_back(qMakePair(cyl->gasmix.o2.permille, cyl->gasmix.he.permille));
|
||||
}
|
||||
return l;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user