diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-12-29 19:29:23 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-12-29 13:16:58 -0800 |
commit | 75142b0a63279bac1e0b276edbf48ba3cea62862 (patch) | |
tree | d6f816be0a1053f3645519e23f9561153d1ec2ec /qt-models | |
parent | f74308bed40e2d463d8b4ed5e57dc56220b65bcc (diff) | |
download | subsurface-75142b0a63279bac1e0b276edbf48ba3cea62862.tar.gz |
cleanup: less than operators shall not use equal
See also commit c032006d91ee3c. Compare functions passed
to sort functions need to compare for less-than and not
less-or-equal.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 8efb3473c..31c98bac7 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -659,7 +659,7 @@ void DivePlannerPointsModel::setStartTime(const QTime &t) bool divePointsLessThan(const divedatapoint &p1, const divedatapoint &p2) { - return p1.time <= p2.time; + return p1.time < p2.time; } int DivePlannerPointsModel::lastEnteredPoint() |