mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: less than operators shall not use equal
See also commit c032006d91
. 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>
This commit is contained in:
parent
f74308bed4
commit
75142b0a63
2 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ void PreferencesDialog::buttonClicked(QAbstractButton* btn)
|
||||||
|
|
||||||
bool abstractpreferenceswidget_lessthan(AbstractPreferencesWidget *p1, AbstractPreferencesWidget *p2)
|
bool abstractpreferenceswidget_lessthan(AbstractPreferencesWidget *p1, AbstractPreferencesWidget *p2)
|
||||||
{
|
{
|
||||||
return p1->positionHeight() <= p2->positionHeight();
|
return p1->positionHeight() < p2->positionHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PreferencesDialog::addPreferencePage(AbstractPreferencesWidget *page)
|
void PreferencesDialog::addPreferencePage(AbstractPreferencesWidget *page)
|
||||||
|
|
|
@ -659,7 +659,7 @@ void DivePlannerPointsModel::setStartTime(const QTime &t)
|
||||||
|
|
||||||
bool divePointsLessThan(const divedatapoint &p1, const divedatapoint &p2)
|
bool divePointsLessThan(const divedatapoint &p1, const divedatapoint &p2)
|
||||||
{
|
{
|
||||||
return p1.time <= p2.time;
|
return p1.time < p2.time;
|
||||||
}
|
}
|
||||||
|
|
||||||
int DivePlannerPointsModel::lastEnteredPoint()
|
int DivePlannerPointsModel::lastEnteredPoint()
|
||||||
|
|
Loading…
Add table
Reference in a new issue