diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-10 13:38:51 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-10 13:38:51 -0700 |
commit | 84680fdd5fb38cde9f10a0d0b380ff9e3b933682 (patch) | |
tree | 0b1c3468aa6abffe1c62dba62613b90e1914c403 | |
parent | f54849987e856f45990c2607470990ff5a8e8f8b (diff) | |
download | subsurface-84680fdd5fb38cde9f10a0d0b380ff9e3b933682.tar.gz |
Minor code readability improvement
Tomaz pointed out that this is a better way to create that pair.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qthelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qthelper.cpp b/qthelper.cpp index 8b7b3960f..b7b6f778b 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -305,7 +305,7 @@ void selectedDivesGasUsed(QVector<QPair<QString, int> > &gasUsedOrdered) } } Q_FOREACH(gas, gasUsed.keys()) { - gasUsedOrdered.append(QPair<QString, int>(gas, gasUsed[gas])); + gasUsedOrdered.append(qMakePair(gas, gasUsed[gas])); } qSort(gasUsedOrdered.begin(), gasUsedOrdered.end(), lessThan); } |