Skip to content

Commit 8fc37bf

Browse files
committed
Fix use of integer constants in boolean context warning
1 parent 3c1bdf0 commit 8fc37bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgshistogramwidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ QgsHistogramWidget::~QgsHistogramWidget()
8484

8585
static bool _rangesByLower( const QgsRendererRange &a, const QgsRendererRange &b )
8686
{
87-
return a.lowerValue() < b.lowerValue() ? -1 : 0;
87+
return a.lowerValue() < b.lowerValue();
8888
}
8989

9090
void QgsHistogramWidget::setGraduatedRanges( const QgsRangeList &ranges )

0 commit comments

Comments
 (0)