From 75142b0a63279bac1e0b276edbf48ba3cea62862 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Fri, 29 Dec 2017 19:29:23 +0100 Subject: 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 --- qt-models/diveplannermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-models') 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() -- cgit v1.2.3-70-g09d2