summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-12-24 10:21:35 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-24 07:24:12 -0800
commit09096f9af418805560968e1721dcfb83bf9bd511 (patch)
treef70691e99f0199965decb39863eac7c251395986 /qt-ui
parent1a933e7e19ba3ded1ab508dfb7ef4f19a1da4519 (diff)
downloadsubsurface-09096f9af418805560968e1721dcfb83bf9bd511.tar.gz
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>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/diveplanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 54db1ad7f..6d5390b07 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -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;
}